Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects expression to trail????

  • expression to trail????

    Posted by Erin Shelby on March 24, 2006 at 6:41 am

    okay, here’s a kinda weird one…

    I want an layer to scale up, but I always want another alternate later to scale along with it…but I want the alternate layer to trail about 10 frames behind. Thoughts?

    Mike Clasby replied 20 years, 1 month ago 2 Members · 2 Replies
  • 2 Replies
  • Mike Clasby

    March 24, 2006 at 7:35 am

    This is a modification (scale for position) of the first expression on Dan’s page on Trails:

    delay = 10; //number of frames to delay

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

    To make this work the first layer to scale is the top layer (layer 1) and the expression goes on the layer you want to follow in its scaling. There can be other layers in the comp, the lead scaling layer just needs to be the top layer.

    Here’s the page:

    https://www.motionscript.com/mastering-expressions/follow-the-leader.html

  • Mike Clasby

    March 24, 2006 at 7:45 pm

    Opps. It was later when I wrote that so I grabbed the unmodified expression, here’s the right one (“scale” subbed in for “position”):

    delay = 10; //number of frames to delay

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

    It’s the “scale” in the bottom line that’s now right, last night’s had “position” there as in Dan’s original expression, sorry ’bout that.

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