Copy link to clipboard
Copied
I'm trying to track my puppet pin tool to a null object.
I am using the code
n=thisComp.layer("NullObject_Name");
nullpos=n.toComp(anchorPoint);
fromComp(nullpos);
But ever time I assign the name of the null obect tp the puppet pin (eg. hair_bottom_left0)
n=thisComp.layer("hair_bottom_left0");
nullpos=n.toComp(anchorPoint);
fromComp(nullpos);
The pin tracks a different position and not the null object.
How do I get the pin to track to the null object I assigned it too?
Copy link to clipboard
Copied
Try changing the second line to this:
nullpos=n.toComp(n.anchorPoint);
Copy link to clipboard
Copied
Thank you for your asistance. It works!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now