Hi~I recently meet the problem to batch move objects with the same offset distance, however, to set position respectively can be a disaster and a little fool, so I want to make them as children of a Null object that I can move all of them with just move Null object.
To let other potential beginners better pick up and understand, let me make 2 cubes as an easy example, so how to set B cube as the child of A cube by python? what if two B cubes or more?
import c4d
A_cube=c4d.BaseObject(c4d.Ocube)
B_cube=c4d.BaseObject(c4d.Ocube)
#?????unknow how to set children ???
doc.InsertObject(B_cube)
c4d.EventAdd()
Thanks!