Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects Expressions › Follow the Leader Y Position

  • Follow the Leader Y Position

    Posted by Becca Matthews on May 28, 2020 at 8:21 pm

    Hi,

    I’m using the expression from the MotionScripts page here – https://www.motionscript.com/mastering-expressions/follow-the-leader.html
    (found on an old CC post, thanks)

    The effect I’m trying to get is letters in a word moving up/down in sequence with the first letter in the word leading the movement and each after delayed by some amount of time.

    I’d like to use just the Y position of the leader layer, so that the letters don’t stack on top of each other. Is there a way to limit this expression to just Y? I’m new to working with expressions beyond simple wiggles, etc. ; I’ve been looking at various articles position arrays all morning but I don’t think I’m getting any closer to figuring this out. TIA

    delay = 5; //number of frames to delay

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

    Becca Matthews replied 6 years, 4 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    May 28, 2020 at 9:37 pm

    Maybe like this:

    delay = 5; //number of frames to delay
    d = delay*thisComp.frameDuration*(index – 1);
    p = thisComp.layer(1).position.valueAtTime(time – d);
    [value[0],p[1]]

    Dan

  • Becca Matthews

    May 29, 2020 at 1:20 am

    Thanks! I tried it just now. The layer Y position shifts down and the X position stays where it should be but it doesn’t follow the movement of the lead layer.

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