Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions only X position time delay from layer above it

  • only X position time delay from layer above it

    Posted by Vanessa Appleby on July 24, 2015 at 7:34 pm

    I’m trying to delay the position animation of several text layers in a list that are sliding in from the side of the screen. I’ve tried using several expressions I’ve found online but nothing’s working.

    This is the closest to what I need, however, I want it to ONLY effect the X position.

    thisComp.layer(index-2).transform.position.valueAtTime(time-.1)

    I tried modifying it so that it was only the X position, but no such luck. Admittedly, I have no idea what I’m doing really.

    I’ve also tried modifying Dan Ebbert’s following expression to only follow the X position, but I ran into the same problem.

    delay = 5; //number of frames to delay

    d = delay*thisComp.frameDuration*(index – 1);
    thisComp.layer(1).position.valueAtTime(time – d)

    If anyone knows how to mod these expressions so they only effect X or Y (really I just want X, but Y might be handy to have for the future), I’d be eternally grateful! Thanks in advance.

    thisComp.layer(index-2).transform.position.valueAtTime(time-.1)

    //OR//

    d = delay*thisComp.frameDuration*(index - 1);
    thisComp.layer(1).position.valueAtTime(time - d)

    Vanessa Appleby replied 11 years, 1 month ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    July 24, 2015 at 7:57 pm

    This should work:


    x = thisComp.layer(index-2).transform.position.valueAtTime(time-.1)[0];
    [x,value[1]]

  • Vanessa Appleby

    July 24, 2015 at 8:15 pm

    You are the god of expressions! Many thanks!!

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