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

    How COFFEE Scripts are implemented

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 334 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

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

      On 29/07/2011 at 08:47, xxxxxxxx wrote:

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

      ---------
      Hi,

      How are the COFFEE Scripts created with the Script Manager implemented ?
      I mean, when creating a script, it appears in the Plugins - Menu under "User Scripts", and I'm trying to achive such a dynamic submenu like this in some way.

      Thanks !
      Niklas

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

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

        On 29/07/2011 at 15:09, xxxxxxxx wrote:

        Hi, you can take a look at CommandData::GetSubContainer. Cheers, Sebastian

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

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

          On 13/12/2011 at 14:04, xxxxxxxx wrote:

          Hello Sebastian,

          I'm having problems with c4d.plugins.CommandData.GetSubContainer() in Release 12, although I haven't tried R13 yet. It seems like the method isn't called. What am I doing wrong ?

          import c4d  
          class Command(c4d.plugins.CommandData) :  
            
            def register(self) :  
                c4d.plugins.RegisterCommandPlugin( id  = 100100,  
                                                   str = "Submenu Test",  
                                                   info = c4d.PLUGINFLAG_COMMAND_HOTKEY,  
                                                   icon = None,  
                                                   help = "Submenu Test",  
                                                   dat = self )  
            
            def GetSubContainer(self, doc, submenu) :  
                print "Command.GetSubContainer(", doc, ",", submenu, ")"  
                return False  
            
            def ExecuteSubID(self, doc, subid) :  
                print "Command.ExecuteSubID(", doc, ",", subid, ")"  
            
          Command().register()
          

          Thank you,
          Niklas

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

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

            On 14/12/2011 at 06:19, xxxxxxxx wrote:

            Hello,

            This example works in R13, but not in R12. Very unfortunate.. Will there be an update to fix some of those bugs ? (e.g. the FindCTrack bug should be fixed in R12 as well!)

            Thanks,
            Niklas

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