Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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
    • Recent
    • Tags
    • Users
    • Login

    GeDialog Foldable Group

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 363 Views
    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.
    • H Offline
      Helper
      last edited by

      On 28/05/2013 at 07:13, xxxxxxxx wrote:

      I want to have a GeDialog group which I can fold and unfold.
      I used the things they say in the SDK, but it doesn't work properly.
      When I fold the group, it just isn't visible anymore (in CINEMA 4D).
      Anything I should change?

      [CODE/]
      class InitializeSubDialog(c4d.gui.GeDialog) :

      def CreateLayout(self) :         #Layout
            self.SetTitle("Character Values")
           
            #Group Foot
           
              self.GroupBegin(GroupFoot, c4d.BFH_SCALEFIT, 2, 0, "Foot", c4d.BFV_BORDERGROUP_FOLD)
            self.GroupBorderSpace(5, 5, 5, 5)
            self.GroupBorder(c4d.BORDER_GROUP_IN)
            self.AddStaticText(FOOT_X_TEXT, c4d.BFH_LEFT, 100, 0, "Foot_X", 0)
            self.AddEditSlider(FOOT_X_SLIDER, c4d.BFH_SCALEFIT, 100, 0)
            self.AddStaticText(FOOT_Y_TEXT, c4d.BFH_LEFT, 100, 0, "Foot_Y", 0)
            self.AddEditSlider(FOOT_Y_SLIDER, c4d.BFH_SCALEFIT, 100, 0)
            self.AddStaticText(FOOT_Z_TEXT, c4d.BFH_LEFT, 100, 0, "Foot_Z", 0)
            self.AddEditSlider(FOOT_Z_SLIDER, c4d.BFH_SCALEFIT, 100, 0)
            self.AddStaticText(FOOT_AXIS_X_TEXT, c4d.BFH_LEFT, 100, 0, "Foot_Axis_X", 0)
            self.AddEditSlider(FOOT_AXIS_X_SLIDER, c4d.BFH_SCALEFIT, 100, 0)
            self.GroupEnd()

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 28/05/2013 at 10:12, xxxxxxxx wrote:

        Take a look at this thread: https://developers.maxon.net/forum/topic/6455/6930_bfvbordergroupfold-disappear&KW=BFV_BORDERGROUP_FOLD&PID=32421#32421

        -ScottA

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          On 29/05/2013 at 08:34, xxxxxxxx wrote:

          Ok, that makes it clear,

          thanks a lot!

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            On 18/11/2013 at 04:07, xxxxxxxx wrote:

            It is possible using HideElement() and a custom User area or button. See

            https://developers.maxon.net/forum/topic/7549/9454_collapsingfoldable-groups-in-python

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