Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Interpolate an Int

  • Interpolate an Int

    Posted by Edward Clayton on May 5, 2022 at 11:57 pm

    Working on an expression that is controlled by the value of an Int. I’d like to take the Int and interpolate or ease the value upon change for set amount of frame.

    For example

    Value at 0:00 = 1;

    Value at 3:00 = 2;

    Let’s assume 30fps comp and I want the interpolation last 10 frames. Is there an expression that could make it so:

    Value at 2:20 = 1;

    Value at 2:21 = 1.1;

    Value at 2:25 = 1.5;

    Value at 2:29 = 1.9;

    Value at 3:00 = 2;

     

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

    May 6, 2022 at 12:22 am

    I guess it depends on what you’re going to do with the result. This gets you pretty close:

    t1 = framesToTime(80);

    t2 = framesToTime(90);

    linear(time,t1,t2,1,2)

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