Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions following position x

  • following position x

    Posted by Josh Holdens on September 18, 2011 at 1:25 am

    Alright here’s what I’m trying to accomplish. I want to be able to follow a given property(in this case position), but specifically the x or y position. I thought it would be as easy as setting a variable then adding the valueAtTime expression, but I’m definitely missing something…. I saw the delay expression but I’m still unsure how to apply that in this case.

    x = thisComp.layer("White Solid 2").transform.position[0].valueAtTime(time - 1);
    y = value[1];

    [x,y]

    Josh Holdens replied 14 years, 8 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    September 18, 2011 at 2:58 am

    You just have the array indexing for x in the wrong place. Try it this way:

    x = thisComp.layer(“White Solid 2”).transform.position.valueAtTime(time – 1)[0];
    y = value[1];
    [x,y]

    Dan

  • Josh Holdens

    September 19, 2011 at 11:29 am

    Great big thanks, I was completely stomped.

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