Hello Plugincafe
I have a simple task but unfortunately, I can't find the solution in docs.
I have an object generator plugin which generates a cube object with a rigid body tag onto it.
When I'm playing the animation, no dynamics takes place.
class testPlugin(c4d.plugins.ObjectData):
def GetVirtualObjects(self, op, hh):
cube = c4d.BaseObject(c4d.Ocube) #Cube
tag = cube.MakeTag(180000102) #Rigid body tag
#This Crashes C4D.
#op.GetDocument().ExecutePasses(c4d.threading.GeGetCurrentThread(), True, True, True, c4d.BUILDFLAGS_INTERNALRENDERER)
return cube
I also tried to create a virtual document and then return the clone but the result is the same. no animation takes place.
I guess I'm using ExecutePasses() in a wrong way.
Would like to get more info about this.