What I need for 32 Bit and 64 Bit



  • 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.



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

Log in to reply