-
Expression to move camera at steady speed with slider control
Hi all.
I’m trying to do something rather simple but it’s breaking my head.I have a bunch of cameras at different positions in the timeline. They all need to move on the Z axis at a steady constant speed but at some point I need to stop one of the cameras.
So I’ve been using the script below, placed on each of the cameras.
It works perfectly but I’ve tried a number of ways to get the camera to stop but I can’t figure out how to determine the last value of the position applied by the script. It keeps going back to the original layer position.
Is there a way to move the position without using the “time” expression?
(something like currentPosition += 10 and then you can substitute the 10 with a slider or something like that 😛 )var CamSpeed = thisComp.layer("Adjustment Layer 1").effect("Cam_Speed")("Slider");
var PULL = value[2]-(time*CamSpeed);[value[0],value[1],PULL];