Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions position change at in point

  • position change at in point

    Posted by Jeremy Mullen on August 3, 2010 at 9:14 pm

    How can you set an expression for a parameter like ‘position’ that is active from a layer’s in point? I have dozens of layers that I want to originate from the same position, but at their respective in-points, I’d like to tell them each to move to a new position, so there will be something of a cascading effect as they appear. (Their in points are staggered down the timeline).

    Any and all advice is welcome – thanks!

    Jeremy Mullen replied 15 years, 9 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    August 3, 2010 at 9:51 pm

    The are multiple ways to deal with timing based on in point. Here are a couple:

    // move from startPos to endPos over 1 sec
    startPos = [100,100];
    endPos = [300,300];
    moveDuration = 1;
    linear(time,inPoint,inPoint+moveDuration,startPos,endPos)

    // move from startPos at vel pixels per second
    startPos = [100,100];
    vel = [200,200];
    t = time – inPoint;
    startPos + t*vel

    Usually, as in the second example, the key is to create a variable (“t” in this case) that equals the time since the in point and use that wherever you would normally use time in your expression.

    Dan

  • Jeremy Mullen

    August 4, 2010 at 2:04 am

    That’s terrific – the second one is just right, since velocity allows me to work with a variable set of clips, rather than defining positions explicitly. How would I randomize the velocity values, however, so that the layers can be made to travel in multiple directions without entering different values in each expression?

    Thanks already!

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