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()?
Thx rown