Can I make a hierarchy of nulls inside a Python Generator behave like on in OM?
-
I created a hierarchy inside a python generator, but I would like it to behave like one in OM - so if I rotate one null, all the ones below rotate with it. Is this possible?
-
Hi @SweepingMotion ,
It's a duplicate of your other thread Why won't my python generator update? R2024?
Cheers,
Ilia -
@i_mazlov sorry I thought I deleted this post as I solved the issue.
Anyway to anyone who stumbles upon this question here's how I solved it:
for i,pt in enumerate(points_list[::-1]): off = c4d.Vector(distance * i,0,0 ) mg = pt.GetMg() mg.off = off print(rotation.x) rm = c4d.utils.HPBToMatrix(rotation) pt.SetMg(mg * rm)
So basically if the objects are inserted in the hierarchy and you start from the last one with the transformations this will work just like in the OM.