access quicktab settings



  • On 05/12/2013 at 08:55, xxxxxxxx wrote:

    Hello,
    iam building a plugin with customgui quicktab,
    the sdk says it got settings like QUICKTAB_NOMULTISELECT

    Does anyone know how to perform something like 
    myQuickTab[c4d.QUICKTAB_NOMULTISELECT] = True

    quicktab sdk-documentation:
    http://www.maxonexchange.de/sdk/CINEMA4DPYTHONSDK/help/modules/c4d.gui/BaseCustomGui/QuickTabCustomGui/index.html?highlight=quicktab#c4d.gui.QuickTabCustomGui

    Edit:
    If i try to access myQuickTab[c4d.QUICKTAB_NOMULTISELECT] i get the message "TypeError 'c4d.gui.QuickTabCustomGUI' is unsubscriptable"

    thank you,
    Bertram



  • On 05/12/2013 at 13:51, xxxxxxxx wrote:

    found solution:

    I could init the customGUI in this way:
    bc = c4d.BaseContainer()
    bc[c4d.QUICKTAB_NOMULTISELECT] = True
     self.tabs = self.AddCustomGui(self.tabsID, c4d.CUSTOMGUI_QUICKTAB, "123", c4d.BFH_SCALEFIT|c4d.BFV_MASK, 60, 12, bc)



  • On 06/12/2013 at 15:03, xxxxxxxx wrote:

    Could you possibly post more code for this?
    I'm having trouble creating the tabs.

    The node based plugins all use the .res file to load the tabs. And I can't find any documentation on creating them in a GeDialog like this.
    I can create the gizmo fine. But that just creates the header bar. And I can't figure out how to add the actual tabs under that header bar.
    All my attempts to use the functions in the gizmo cause a crash!

      
          bc = c4d.BaseContainer()  
          bc[c4d.QUICKTAB_BAR] = True          
          bc[c4d.QUICKTAB_BARTITLE] = "My QuickTab"  
          bc[c4d.QUICKTAB_SEPARATOR] = True          
          bc[c4d.QUICKTAB_BGCOLOR] = c4d.Vector(0.4, 0.2, 0)   
          bc[c4d.QUICKTAB_SPRINGINGFOLDERS] = True    
          bc[c4d.QUICKTAB_NOMULTISELECT] = False  
            
          self.tabs = self.AddCustomGui(1111, c4d.CUSTOMGUI_QUICKTAB, "123", c4d.BFH_SCALEFIT|c4d.BFV_MASK, 60, 12, bc)  
          self.tabs.SetTextColor(What goes here???, c4d.COLOR_MATERIALMANAGER_TEXT_SELECTED)
    

    Thanks,
    -ScottA



  • On 13/12/2013 at 08:41, xxxxxxxx wrote:

    Hello Scott,
    sorry is was a bit busy.

    Well i didnt implement this any further, but found another way to get my idea done.
    I just checked in gui Command() wich tab is selected an used gui.HideElement(ElementID, Boolean) to hide all others and show the right one.

    btw. my PlugIn ist a ToolData-Plugin.

    Does this help somehow?
    Bertram



  • On 13/12/2013 at 09:35, xxxxxxxx wrote:

    That's OK.
    I was interested in learning how to add a quicktab to a GeDialog plugin.
    The docs only show how to create the header part of it. And not the actual tabs under it.

    If anyone out there has an example of this kind of thing. I'd love to see how it's done.

    -ScottA



  • On 13/12/2013 at 15:16, xxxxxxxx wrote:

    Thats excactly what i struggled with ^^
    I finally gave in and used the state to toggle groups ...
    not nice, but it works fine :-)



  • On 13/12/2013 at 20:25, xxxxxxxx wrote:

    I managed to figure out how the quicktabs gui works. And how to use it in a GeDialog.

    What I did to figure it out was to use C++ and Visual Studio's intellisense option to test all the possible options until I accidentally hit upon the winning combination to make everything work.
    This is something I tend to do a lot when the docs fail to provide the proper information.
    Thank God for intellisense.

    If you like Bertram. I can post a Python example as soon as I get a chance.
    I just need to finish my C++ example first.

    -ScottA


Log in to reply