How to set the Priority of an ObjectData?

  • On 28/05/2014 at 16:51, xxxxxxxx wrote:

    Hello everybody,

    as the title already says I have an ObjectData and I want it working after GENERATOR 0. Im not sure how to use AddToExecution(), Execute() and OBJECT_CALL_ADDEXECUTION and if its the right way at all.
    How can I set the Priority?

    Thx rown

  • On 29/05/2014 at 04:35, xxxxxxxx wrote:

    Have slept on it for a night and now it works after restart.

    def AddToExecution(self, op, list) :  
      list.Add(op, c4d.EXECUTIONPRIORITY_GENERATOR, 1)  
      return True  
    def Execute(self, op, doc, bt, priority, flags) :  
      print "exe"  
      return c4d.EXECUTIONRESULT_OK


    plugins.RegisterObjectPlugin(id=PLUGIN_ID, str="name",  
                                  info=c4d.OBJECT_POLYGONOBJECT | c4d.OBJECT_CALL_ADDEXECUTION,  

    Anyway! Now Ive to look for an answer to question how to call GetVirtualObjects() from Execute() or can I return the PolygonObject from Execute()?

    Thx rown

Log in to reply