Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Incrementally increase position.

  • Incrementally increase position.

    Posted by Reynaldo Cortorreal on July 21, 2009 at 4:22 pm

    Anyone know a way to obtain the value of the possition one frame in history? I can’t figure out a way to do this. I previously avoided doing this but that resulted in a history dependent expression that is very hard to alter.

    All i need is:
    5+transform.xPosition.valueAtTime(time-1*thisComp.frameDuration);

    The problem with that is that, it doesn’t work.

    I’ve spent countless hours trying to figure this out and I cant find a solution.

    Reynaldo Cortorreal replied 17 years ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    July 21, 2009 at 4:56 pm

    An expression can’t retrieve a value that it calculated on a previous frame . Your choices are to recreate it somehow or to come up with a way to base your caluclation on time.

    The first method generally involves creating a loop that goes frame by frame to recalculate the value you’re looking for.

    The second method is much easier, but it’s not always possible to create the necessary time-based formula.

    dan

  • Reynaldo Cortorreal

    July 21, 2009 at 5:17 pm

    Well that’s a bummer, there should be something that retrieves the current location of the object your moving, dynamically.

    My only other option is to increment a slider that will hold the current value of the position. Not sure if this will work but i will try it.

  • Reynaldo Cortorreal

    July 21, 2009 at 5:27 pm

    The reason I cant base it on time is because I am animating the the speed at which the object moves. I had it set up to animate based on time before, the problem with that was that i could not make the animation speed up without making the contents within the animation speed up along the way.

    I am animating clips moving horizontally on the screen. I want them to move faster at one point and then slow down, without speeding up the playback of the clips.

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