GeDialog Foldable Group



  • 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()



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

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

    -ScottA



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

    Ok, that makes it clear,

    thanks a lot!



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

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

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


Log in to reply