| I think it should also work with separated dimensions. But note that when you separate dimensions, all expressions are deleted so you have to reapply the expression again (to each dimension separately).
Cheers, Mathias
Dr. Mathias Möhl Marlow 52 , 18551 Sagard, Germany Phone +49 (0)38302 - 88 75 61 I've found this expression for camera shake helpful (Dan Hibberts website) but once i separate the camera positions dimensions it stop working, is any way that this can be arrange so it works with separate positions keyframes?
Thanks
Dan
freq = effect("Frequency")("Slider");
amp = effect("Amplitude")("Slider");
if (freq.numKeys > 0){
accum = 0;
v0 = freq.valueAtTime(0);
t0 = 0;
i = 1;
while (i <= freq.numKeys){
t = freq.key(i).time;
if (t < time){
accum += (v0 + freq.key(i).value)*(t - t0)/2;
v0 = freq.key(i).value;
t0 = t;
if (i == freq.numKeys){
accum += (time - t0)*v0;
}
}else{
accum += (freq + v0)*(time - t0)/2;
break;
}
i++;
}
}else{
accum = freq*time;
}
wiggle(1,amp,1,.5,accum);
|