-
Progressive wiggle – still having issues! FAO Dan!
Hi there,
I’m still having difficulty in getting a smooth move between wiggle frequency keyframes. I used to get a frantic wiggle between the keyframes when AE recalculated the location on each frame, and then Dan gave me this expression…
freq = thisComp.layer(“Wiggle Control Sliders”).effect(“FREQUENCY”)(“Slider”);
amp = thisComp.layer(“Wiggle Control Sliders”).effect(“AMOUNT”)(“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); ...which seemed to work at his end but not mine - I get a big movement jerk after the last keyframe. Here is a project file with the expression applied, and the problem frame marked. I'm working in CS3 if that makes a difference. Does this work with you Dan/anybody else? I really need to solve this problem if at all possible 🙂 https://webfilemanager.co.uk/dsf.php?fileid=GVkRrPyuMany thanks,
nico