Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions What’s wrong with this expression?

  • What’s wrong with this expression?

    Posted by John Mayer on October 7, 2012 at 4:13 am

    temp = thisComp.layer("Null 11").transform.position[0];
    [temp, temp]thisComp.layer("Null 11").transform.position[1]

    I try to link with the pickwip the position of X and Y of a comp to a null object and there’s an error poping when I link the Y coordinate or second coordinate.

    The error: Expected: ;
    Error occured at line 2
    Property: ‘position’

    I’m stuck, this is an easy one usually, but for unknown reason it doesn’t work. I tried to put a ; at the end of the line 2 and still doesn’t work.

    John Mayer replied 13 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    October 7, 2012 at 4:59 am

    Why are you linking x and y separately? Doesn’t this work?

    thisComp.layer(“Null 11”).transform.position;

    Dan

  • John Mayer

    October 7, 2012 at 5:05 am

    You are right, I’ve been picking the wrong data! I needed to pickwip the word position instead. Totally forgot that *shame*

    thanks!

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