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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Python plugins.CommandData.GetSubContainer

    PYTHON Development
    0
    6
    1.4k
    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
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 07/01/2011 at 20:22, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:    
      Platform:      
      Language(s) :       PYTHON  ;

      ---------
      Hi,

      I have been trying create a submenu, but the exemple in the documentation doesnt work :

        
      import c4d   
        
      PLUGIN_ID = 1019277   
        
      class SubMenuTest(c4d.plugins.CommandData) :   
        
          def GetSubContainer(self, doc, submenu) :   
              bc = c4d.BaseContainer()   
              bc.SetString(1, "Submenu Test")   
              bc.SetString(1000, "First Entry")   
              submenu.InsData(0,bc)   
              return True   
        
      if __name__ == "__main__":   
          c4d.plugins.RegisterCommandPlugin(PLUGIN_ID, "Test de sous menu", 0, None, '-', SubMenuTest())
      

      What's wrong ?

      Thanks and cheers.

      olid

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 14/01/2011 at 03:11, xxxxxxxx wrote:

        I can confirm this. I will forward this to the developers.

        cheers,
        Matthias

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 14/01/2011 at 03:30, xxxxxxxx wrote:

          Submenus are currently not supported in Python. The documentation will change accordingly.

          cheers,
          Matthias

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

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 16/01/2011 at 00:21, xxxxxxxx wrote:

            OK,
            thx Matthias

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

              On 06/01/2014 at 18:09, xxxxxxxx wrote:

              Is this still the case? I can't get submenus to work, but The 15.057 documentation definitely mentions them: [URL-REMOVED]#c4d.plugins.CommandData


              [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

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

                On 07/01/2014 at 07:21, xxxxxxxx wrote:

                GetSubContainer() is called when the Plugin Icon is docked in the interface of Cinema 4D and it is
                clicked from there. The same limitation applies to GetSubContainer() of C++ plugins.

                Best,
                -Niklas

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