Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Tracking puppet pin tool with null object track(HELP)

New Here ,
May 31, 2011 May 31, 2011

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?

TOPICS
Expressions
4.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 31, 2011 May 31, 2011

Try changing the second line to this:

nullpos=n.toComp(n.anchorPoint);

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 31, 2011 May 31, 2011
LATEST

Thank you for your asistance. It works!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines