Activity › Forums › Adobe After Effects › Wiggle expression
-
Wiggle expression
Posted by Scott Gaskin on November 3, 2013 at 9:31 pmHi there,
I want to create a wiggle expression but be able to start it and end it at a specific point on the time line.
Can any one please help?
Thanks
Scott
Scott Gaskin replied 12 years, 6 months ago 2 Members · 4 Replies -
4 Replies
-
Ridley Walker
November 4, 2013 at 12:06 amSince wiggle takes a minimum of 2 parameters which represent frequency and amount, you can use an expression slider to keyframe either of these values to 0 thereby stopping the wiggle eg: wiggle(5,10) then wiggle(0,10)
An expression can also reference Composition time in seconds and start or stop the wiggle that way.
Additionally you can use markers to trigger expressions:
if (marker.numKeys > 0){
n = marker.nearestKey(time).index;
pos = [value[0],value[1]];
if (n == 2) {
pos;
}else{
wiggle(2,40);
}
}Here are 2 methods in this sample file:
-
Scott Gaskin
November 4, 2013 at 8:29 pmThanks for the message Ridley.
You’ll have to forgive me as I am very new to expressions so bit confused.
You talk about an expression slider, is this the slider control in after effects? If so how do you control the expression with it?Are there any tutorials you know of that shows you how to do this you could point me to? Really appreciate you sending the example file but I couldnt open them with my version of AE (CS5) so i guess you have a newer version
Many thanks
Scott
-
Ridley Walker
November 4, 2013 at 8:55 pmHere is a CS5 version:
In the Composition named “Wiggle with Slider” , there are Expression sliders wired into the wiggle expression for the position of the layer.
For information on expressions go to motionscript.com, Dan Ebberts’ site which is a terrific source of information for beginners. You may also want to learn the basics of JavaScript, look to CodeAcademy for free tutorials.
-
Scott Gaskin
November 5, 2013 at 9:11 pmMany thanks for your help with this Ridley and for supplying the CS5 file. I will have a look and check out the site you mentioned. Much appreciated
Scott
Reply to this Discussion! Login or Sign Up
