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

    What I need for 32 Bit and 64 Bit

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 205 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 07/12/2010 at 23:52, xxxxxxxx wrote:

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

      ---------
      Hey Guys,

      A little question:

      What must i care about, that my plug-in works in Cinema 4D 32 and 64 Bit? Or is it only necessary by libraries?

      ______

      An other question:
      I need a plugintyp witch start on program start of cinema 4d and is alltime activated. Also should have a gui-Layout.

      What is the right one?
      CommandPlugin, MessangerPlugin?...and how to script it, that its do not terminate after a few seconds.

      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 08/12/2010 at 04:57, xxxxxxxx wrote:

        Ok, I get it with MessagePlugin.
        But how can I also add a layout? Where should the function be called?

        €: I use now to registerplugins in one file with two different pluginids. Is there a better version out there?

          
        import c4d    
        from c4d import gui, plugins, utils, bitmaps     
           
        class MyDialog(gui.GeDialog) :    
          
            check_RenderFullSize = None  
          txt_Username = None  
          txt_Password = None  
            
          def CreateLayout(self) :  
              etc...  
                 
              return True    
                
        class Menu(plugins.CommandData) :  
          dialog = None   
            
          def Execute(self,doc) :  
              if self.dialog is None:  
                  self.dialog = MyDialog()  
                
              return self.dialog.Open(dlgtype=True, pluginid=PLUGIN_ID, xpos=-1, ypos=-1, defaultw=180, defaulth=100)    
          
          def RestoreLayout(self, sec_ref) :      
              if self.dialog is None:    
                  self.dialog = MyDialog()    
          
              return self.dialog.Restore(pluginid=PLUGIN_ID, secret=sec_ref)  
                
        class GetInfo(plugins.MessageData) :   
           
          def CoreMessage(self,id,bc) :  
              if id==c4d.EVMSG_CHANGE: print("hey")  
                
              return True  
          
        if __name__ == '__main__':  
          PLUGIN_ID = XXXXXX  
          c4d.plugins.RegisterCommandPlugin(PLUGIN_ID, "GetInfo", 0, None, "GetInfo", Menu())  
          PLUGIN_ID = XXXXXXY  
          c4d.plugins.RegisterMessagePlugin(PLUGIN_ID, "GetInfo", c4d.PLUGINFLAG_COMMAND_HOTKEY, GetInfo())
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post