I want to use python generator to return cloner object. and clone object "A" on the object "B" surface, but it's return odd result, I don't know what step is wrong.
And this is my python code here:
import c4d
#Welcome to the world of Python
def main():
cloner = c4d.BaseObject(1018544)
sphere = c4d.BaseObject(c4d.Osphere).GetClone(0)
plane = c4d.BaseObject(c4d.Oplane).GetClone(0)
bc = c4d.BaseContainer()
bc.SetLong(c4d.ID_MG_MOTIONGENERATOR_MODE,0)
bc.SetLink(c4d.MG_OBJECT_LINK,plane)
cloner.SetData(bc)
sphere.InsertUnder(cloner)
return cloner