Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Animating position without keyframes at a constant velocity.

  • Animating position without keyframes at a constant velocity.

    Posted by Slbailey on September 5, 2006 at 8:27 pm

    What I’m wanting to do I think should be easy. I just can’t figure out the “easy” way to do it.

    I have an extremely long row of text that i want to animate from left to right at a constant velocity of 1.4 pixels per frame. Because of the nature of the project, I don’t want to do it through keyframes because this composition will be nested inside a parent comp and could be 10 seconds long once and 20 seconds long twice. I’d much rather do it via expressions.

    Could someone offer some advice on how to set up the expression? Here’s what I’ve tried and it’s not working:

    currentFrame = timeToFrames();
    previousTime = framesToTime(currentFrame-1);
    sub(position.valueAtTime(previousTime),[1.4,0]);

    Thanks!

    Steve

    Dan Ebberts replied 20 years ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    September 5, 2006 at 9:41 pm

    I would think something like this should work (but I haven’t tested it):

    currentFrame = timeToFrames();
    value – [currentFrame*1.4,0]

    Dan

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