dan, your looping wiggle expression has been such an asset for me so many times so thank you! i’ve run into somewhat of a wall with it when being applied to a camera’s ‘point of interest’ in a 3D composition, however.
in the simplest reproduction of my issue, i have a stationary, two-node camera whose ‘point of interest’ value animates across any given length of time (as few as two keyframes). when i apply your expression to the ‘point of interest’, i find that it animates completely differently from how it should – it’s as if the expression is causing an issue with the keyframed values? when i clear the expression and enter a non-looping, regular wiggle [IE wiggle(2,5);] the animation is restored…any idea why this would be?
thanks so much in advance – it’s much appreciated!!
PS: side note, is it possible to set the loop time in fractions of seconds, and how would you do that? would a value of ‘3.20’ loop every 3 seconds and 20 frames?
freq = 2;
amp = 5;
loopTime = 3;
t = time % loopTime;
wiggle1 = wiggle(freq, amp, 1, 0.5, t);
wiggle2 = wiggle(freq, amp, 1, 0.5, t - loopTime);
linear(t, 0, loopTime, wiggle1, wiggle2)