Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Need help interpolating blocks of keyframes

  • Need help interpolating blocks of keyframes

    Posted by Micheel Leavitt on October 29, 2009 at 5:07 pm

    Hello, I was messing around with action counters (total adaptation of Dan Ebbert’s Audio Beat Counter on his site) and I was curious as to how you can interpolate the blocks of converted keyframes so they change linearly over time. I tried multiple variations of an interpolation but I can’t find a command that will evaluate the opposite of valueAtTime, which is what I think would be neccesary. In other words, I have a block of keyframes that are set to one for about two seconds, a block of keyframes set to two for around a 1/2 second, etc. and I want them to linearly interpolate from one to two that won’t have any margin of error. I thought if I could get the exact time the values change to the next number, and only that time, then set up a while counter that counts off each time this value changes it would work, but I can’t find the extensions of the expression language to do this. This should be possible, otherwise I’m doomed to hand delete all of the copies of keyframes for about 12-15 seconds of keyframes, with intervals as small as four frames. Anyone have some ideas?

    I was thinking maybe this could be accomplished with a script, but I think thats asking a lot. An expression would do just as well. Thanks for any input!!

    Eric Sanderson replied 16 years, 6 months ago 2 Members · 3 Replies
  • 3 Replies
  • Eric Sanderson

    October 29, 2009 at 5:33 pm

    If linear interpolation between keyframes is all your looking for you can right click the keyframe, go to keyframe interpolation, spatial interpolation and set it to linear there.

  • Micheel Leavitt

    October 29, 2009 at 9:40 pm

    Will this work if there is a keyframe on every frame?

  • Eric Sanderson

    November 2, 2009 at 3:06 pm

    hmm maybe not because if there is a keyframe on every frame there is no “spatial” interpolation to consider…every point in space is already determined by the key frame, and i dont know of any sub frame settings.

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