I'm working on an animation where the various video's keep moving past the camera in a steady motion. But at some points the movement needs to stop. I figured this would be pretty doable with an expression in combination with a slider control to control the speed.
The code I initially got (below) didn't have the slider control but it turns out this is a problem.
When I animate the slider from 0 to 150 it speeds up dramatically to a speed that looks more like 2000 and then when it passes the 150 keyframe it continues on at the intended 150 speed
Here's one idea: Parent all the layers to a null object, then parent that null to another null. Make one of the nulls the continuous slow movement that you want, then keyframe the other one for when you want fast motion.
- The Great Szalam
(The 'Great' stands for 'Not So Great, in fact, Extremely Humble')
No trees were harmed in the creation of this message, but several thousand electrons were mildly inconvenienced.
Thanks for the reply Michael, that's also a good way to look at it and I'll surely keep that in mind :)
But after a long search last night I finally found what I was looking for. I'm not sure what it all means but it does exactly what I wanted.
I can completely control the speed of the animation by setting the Slider control to the speed I want. :)
Td = framesToTime(1, 1.0 / thisComp.frameDuration);
x = 0;
v = effect("Slider Control")("Slider");
n = timeToFrames(time + thisComp.displayStartTime, 1.0 / thisComp.frameDuration);
for (k=0; k<=n; k++)
x = x - v.valueAtTime(k*Td);