Activity › Forums › Adobe After Effects Expressions › What is the “t=time” value in wiggle expression?
-
What is the “t=time” value in wiggle expression?
Posted by Lord Scales on May 1, 2007 at 7:41 pmI am looking for this there is a long time.
There is the wiggle:
wiggle(freq, amp, octaves = 1, amp_mult = .5, t = time)I know what all the values do, except the t = time one.
Could someone explain this?
Thanks very much!
Lord Scales
Joe Nicklo replied 11 years, 1 month ago 4 Members · 9 Replies -
9 Replies
-
Dan Ebberts
May 1, 2007 at 7:56 pmIt just specifies the time that the wiggle value is retrieved from. Works kind of like valueAtTime().
For fun, apply this expression to a small solid’s position and then duplicate the solid a bunch of times:
delay = 0.1;
seedRandom(1,true);
wiggle(1,200,1,0.5, time – (index-1)*delay)Dan
-
Lord Scales
May 1, 2007 at 8:16 pmI got it!
Thanks, Dan!
By the way, the effect is really funny 🙂
Lord Scales
-
Scott Green
June 15, 2012 at 1:21 pm -
Scott Green
June 15, 2012 at 1:22 pm -
Dan Ebberts
June 15, 2012 at 4:42 pmThis is one way to do it. This expression starts wiggling at frame 100 and stops at frame 200, with a 5-frame ramp on each end:
fStart = 100;
fStop = 200;
fRamp = 5;amp = 5;
freq = 5;tStart = framesToTime(fStart);
tStop = framesToTime(fStop);
tRamp = framesToTime(fRamp);
if (time < (tStart + tStop)/2)
a = linear(time,tStart,tStart+tRamp,0,amp)
else
a = linear(time,tStop-tRamp,tStop,amp,0);
wiggle(freq,a)
Dan
-
Scott Green
June 15, 2012 at 10:10 pm -
Scott Green
June 19, 2012 at 7:53 am -
Dan Ebberts
June 19, 2012 at 1:27 pmIn general, yes–although the way you do it might depend on the expression. Basically you need to first calculate the total “run time” up through the current frame and plug that total into your expression where you would normally use time.
Dan
Reply to this Discussion! Login or Sign Up