Copy link to clipboard
Copied
I have a mocha tracked null. I child another null thats slightly offset in XY. Now the child's coordinates are relative to the parent. But how can I get the child's true position in the comp?
This seems too easy:
thisComp.layer("parentNULL").transform.position + thisComp.layer("childNULL").transform.position
Am I missing something?
Copy link to clipboard
Copied
That should work if they're both nulls, but this is probably the better way to do it:
thisComp.layer("childNULL").toWorld([0,0,0])
Or maybe this, if it's all 2D stuff:
thisComp.layer("childNULL").toComp([0,0,0])
Dan
Copy link to clipboard
Copied
Aha! Fantastic! I was getting some minor misalignment errors with my method. Yours is spot on! Thank you!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now