Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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
and
plugins.RegisterObjectPlugin(id=PLUGIN_ID, str="name", g=name, description="name", info=c4d.OBJECT_POLYGONOBJECT | c4d.OBJECT_CALL_ADDEXECUTION, icon=icon)
Anyway! Now Ive to look for an answer to question how to call GetVirtualObjects() from Execute() or can I return the PolygonObject from Execute()?