-
Continued motion expression error
Hi,
I have this expression that takes the value of the last keyframe and continues.
I use it often but I am now getting an error.
I am not great at coding or writing expressions, so any help would be appreciated.Thanks,
nk=numKeys;
value;
if ((nk>1) && (key(nk).time<time)) {
startT=key(nk).time;
deltaT=thisComp.frameDuration;
deltaV=key(nk).value – valueAtTime(startT-deltaT);
key(nk).value + deltaV*(time-startT)/deltaT;}