-
Need help interpolating blocks of keyframes
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!!