Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Register
    • Login

    Foldable Groups in Python GeDialog

    Cinema 4D SDK
    python 2024
    3
    5
    622
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      BretBays
      last edited by

      I feel like I have maybe asked this before, but I couldn't find an answer for python for this.

      Is it possible to create foldable groups in a GeDialog? Kind of like what you see in Attribute Settings. I basically just want to be able to make foldable sections in my GeDialog and was struggling to see how to achieve that as the flags didn't seem to be working.

      1 Reply Last reply Reply Quote 0
      • B
        BretBays
        last edited by

        For some context, I wrote this plugin many many moons ago, and would like to modernize it a bit, and be able to collapse some of the groups so the whole plugin is not overwhelming https://vimeo.com/manage/videos/83452164

        DunhouD 1 Reply Last reply Reply Quote 0
        • DunhouD
          Dunhou @BretBays
          last edited by

          Hi @BretBays ,

          You can check github examples , there is a great example here

          Cheers~
          DunHou

          https://boghma.com
          https://github.com/DunHouGo

          1 Reply Last reply Reply Quote 0
          • B
            BretBays
            last edited by

            Interesting. Thank you for that.

            So then, that makes me want to ask, in the case of the foldable Transform and Freeze Transform groups in the coordinates tab of an object, would that mean those are like a bitmap button inside of a group is the parent of another group that is just being hidden?

            i_mazlovI 1 Reply Last reply Reply Quote 0
            • i_mazlovI
              i_mazlov @BretBays
              last edited by i_mazlov

              Hi @BretBays,

              Sorry for the delayed answer.

              Depending on how you picture the final look of your gui and how complex the behavior you'd like to have there, the means can be different.

              There's no easy way to achieve the same look as with "Freeze Transform" inside GeDialog. The suggested way would be to implement the logic manually and hide/show content by the button or a bitmap button. Such approach is demonstrated in the following examples:

              • gedialog_menu_hide_content_r15.py that's pointed out by @Dunhou shows how to hide/show content
              • customgui_quicktab_r19.py shows how to organize switch between your data using tab buttons

              If you really want to have the exact same look as foldable groups in the Description context, you could probably try drawing your layout with the DescriptionCustomGui that is capable of that (c++ example). However, I personally don't think this approach is worth the effort.

              Cheers,
              Ilia

              MAXON SDK Specialist
              developers.maxon.net

              1 Reply Last reply Reply Quote 0
              • First post
                Last post