Activity › Forums › Adobe After Effects › controlling the wiggle effect for specific frames
-
controlling the wiggle effect for specific frames
Posted by Aaron Bear on August 11, 2007 at 5:47 amHey all,
On my comp I have one of those plastic army guys that is firing a missle out of a bazooka. I want to use the wiggle effect to liven the firing, by alt-clicking the pre-comp’s position stopwatch, but I dont want it to shake the entire time. Is there a way to control the wiggle effect for a range of frames? Or perhaps another method besides the position wiggle expression?
-Aaron-
“Wherever you go, there you are”Mikhail Vasilev replied 11 years, 6 months ago 4 Members · 6 Replies -
6 Replies
-
Mike Clasby
August 11, 2007 at 5:27 pmThis to setup a slider to control either the Frequency or Amplitude of the wiggle, when either is 0 the wiggle stops. This is nice because you can make the wiggle ease in and/or out and you can turn the wigle on/off as many tu=imes as you want.
https://forums.creativecow.net/readpost/2/880578
Here’s a Dan post for a checkbox controlling a wiggle:
https://forums.creativecow.net/readpost/2/880587
And here’s a nifty Dan expression for starting and stopping an expression at a given frame:
startFrame = 145;
stopFrame = 241;if (time >= framesToTime(startFrame) && time < framesToTime(stopFrame)){ wiggle (5,20) }else{ value } And if you only wantedto wiggle the Army guy's Y, see this: https://www.motionscript.com/design-guide/wiggle-1-dimension.html
-
Aaron Bear
August 11, 2007 at 9:07 pmHey thanks for the links and tips! This should be able to give me the effect Im looking for, especially the wiggle fade out.
-Aaron-
“Wherever you go, there you are” -
Aaron Bear
August 11, 2007 at 10:08 pmI just finished adding the expression slider controls to the pixel movement and frequency on the wiggle expression. That worked out exactly how I was invisioning! I will have to remember this expression setup.
Thanks!-Aaron-
“Wherever you go, there you are” -
Mike Clasby
August 11, 2007 at 10:25 pmCool.
I just remebered this in case you ever want to wiggle the whole screen, more like an earthquke effect:
Quaker, an Animation Preset free from Scott Frizzle. It’s a gem.
https://scottfrizzle.com/free.html
Applying Preset the first time:
Select the layer you wish to affect, and go to Animation > Apply Aniamtion Preset.
Find Quaker on your harddrive and select it (quaker.ffx).
(If you put it in your Abode After Effects>Support Files > Presets folder,
that way it will always appear in your Preset menu.)Quaker incorporates motion tile to fill in the edges of the shaking layer.
It is also very adjustable, sliders to control Quake Magnitude and Quake Frequency.A pdf comes with the zip that explains all.
-
Darby Edelen
August 12, 2007 at 5:02 am[yikesmikes] “startFrame = 145;
stopFrame = 241;if (time >= framesToTime(startFrame) && time < framesToTime(stopFrame)){ wiggle (5,20) }else{ value }"
One thing I find with starting and stopping wiggles like this is that at the start and end frames you often see a jump. This is more pronounced when the magnitude of the wiggle is larger.
You can create an ease in and out from the wiggle if you give it another variable for the number of frames to ease over. Here’s one of many possible methods:
startFrame = framesToTime(145);
stopFrame = framesToTime(241);
easeOver = framesToTime(20);
freq = 5;
amp = 20;if((time >= startFrame)&&(time < stopFrame)){ if(time < startFrame + easeOver) linear(time, startFrame, startFrame + easeOver, value, wiggle(freq,amp)); if(time >= stopFrame - easeOver) linear(time, stopFrame - easeOver, stopFrame, wiggle(freq,amp), value);
else wiggle(freq,amp);
}else value
Darby Edelen
DVD Menu Artist
Left Coast Digital
Aptos, CA -
Mikhail Vasilev
January 20, 2015 at 4:49 amstartFrame = framesToTime(40);
stopFrame = framesToTime(160);
easeOver = framesToTime(20);
freq = 100;
amp = 300;===================================================================
if((time >= startFrame)&&(time < stopFrame)){if((time >= startFrame)&&(time <= startFrame+easeOver))
linear(time, startFrame, startFrame + easeOver, value, wiggle(freq,amp));
elseif(time >= stopFrame – easeOver)
linear(time, stopFrame – easeOver, stopFrame, wiggle(freq,amp), value);else wiggle(freq,amp);
}else value
===================================================================
Now Starts slow and fade slow too : )
Reply to this Discussion! Login or Sign Up