Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Another null/puppet pin expression issue

  • Another null/puppet pin expression issue

    Posted by Rf Jurjevics on June 28, 2016 at 3:58 am

    Hiya –

    Another tale of puppet pin/null expression woe.

    Grabbed this expression to lock puppet pins to null anchor points, written just like this:

    n=thisComp.layer(“null_name”);

    nullpos=n.toComp(n.anchorPoint);

    fromComp(nullpos);

    Filled in the name of my null. Got everyone’s favorite: syntax error at line 1 in property ‘Position,’ etc etc.
    Looked this issue up on the Cow forums, and tried all the magic fixes, many from Dan Ebberts himself.

    Tried this:

    n=thisComp.layer(“NAME”);
    nullpos=n.toComp(n.anchorPoint);
    fromComp(nullpos);

    And just this:

    n = thisComp.layer(“null”);
    n.toComp(n.anchorPoint)

    Also this:

    n=thisComp.layer(“null”);
    fromComp(n.position);

    NOTHING. WORKS. No magic fix for me. Yet…?

    Things to know:

    1. The layer I am pinning is a precomp, which contains one layer;
    2. There are 3 nulls in the main comp, none of which have been parented yet;
    3. I have renamed the puppet pins based upon what they are controlling (eg. knee, toe, thigh)
    4. I have tried these expressions with 3D ticked and un-ticked
    5. I am using After Effects CC, build 2014.0.2 (13.0.2.3) on a Mac, running OS X 10.10.3 (Yosemite)

    Thanks!

    n=thisComp.layer("NAME");
    nullpos=n.toComp(n.anchorPoint);
    fromComp(nullpos);

    RF Jurjevics
    Creature-at-Large
    Big Creature Media, Inc
    https://www.bigcreaturemedia.com
    ro**@**************ia.com

    Rf Jurjevics replied 9 years, 10 months ago 2 Members · 6 Replies
  • 6 Replies
  • Dan Ebberts

    June 28, 2016 at 4:12 pm

    Your expression doesn’t generate any syntax errors for me. What’s the exact error message you’re getting?

    Dan

  • Rf Jurjevics

    June 29, 2016 at 2:21 am

    Holy cow! (See what I did there?) Ebberts himself! Thanks for replying!

    Here’s the error, along with the workflow:

    RF Jurjevics
    Creature-at-Large
    Big Creature Media, Inc
    https://www.bigcreaturemedia.com
    rosa@bigcreaturemedia.com

  • Dan Ebberts

    June 29, 2016 at 5:06 am

    Nothing jumps out at me. Can you copy and paste here the exact expression that’s generating the error? (I can only see the first line in your pic).

    Dan

  • Rf Jurjevics

    June 29, 2016 at 5:24 am

    Oh, sure:

    n=thisComp.layer(“ankle”);
    nullpos=n.toComp(n.anchorPoint);
    fromComp(nullpos);

    See above re: “ankle.”

    THANK YOU

    RF Jurjevics
    Creature-at-Large
    Big Creature Media, Inc
    https://www.bigcreaturemedia.com
    rosa@bigcreaturemedia.com

  • Dan Ebberts

    June 29, 2016 at 6:42 am

    That expression has curly quotes around the layer name, which will generate a syntax error. Try it this way:

    n=thisComp.layer(“ankle”);
    nullpos=n.toComp(n.anchorPoint);
    fromComp(nullpos);

    Dan

  • Rf Jurjevics

    June 29, 2016 at 7:58 am

    Arg, those damned quotes! I’ve run into this before. Thought I’d tried it for that particular comp, but maybe not. Was probably a different error, as I tried to run DuIK on the 2014 build of AE CC earlier on – BIG MISTAKE. :/

    Anyway: thank you, and it’s great to see you on here! Loved your ‘triggering animation with markers’ method. Saved my butt on a series of projects I did a number of years ago.

    RF Jurjevics
    Creature-at-Large
    Big Creature Media, Inc
    https://www.bigcreaturemedia.com
    rosa@bigcreaturemedia.com

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy