-
1. Re: Start or Stop expression at a given frame?
Dave LaRonde Feb 18, 2014 9:34 AM (in response to GableIsAble)I can think of a way, but it may not be the most efficient way to do it. I stink at expressions myself. You can refer the wiggle values to a layer containing sliders. Using hold keyframes, set the initial values. At frame 100, change the slider values to turn the wiggle off.
Or just split the layer containing the wiggle at frame 100, and remove the wiggle expression.
-
2. Re: Start or Stop expression at a given frame?
Rick Gerard Feb 18, 2014 10:22 AM (in response to Dave LaRonde)You could use an if (time < a value) then.... but this gets very unweildly very quickly. As Dave said, the easiest thing to do is to split the layer.
-
3. Re: Start or Stop expression at a given frame?
Todd_KoprivaFeb 18, 2014 10:46 AM (in response to Rick Gerard)
1 person found this helpfulRick and Dave are correct that it may be easiest to split the layer, but there are examples in After Effects Help for doing this with expressions, here:
-
4. Re: Start or Stop expression at a given frame?
Dan Ebberts Feb 18, 2014 11:00 AM (in response to GableIsAble)If you want it to hold the last wiggle value, I'd do it like this:
stopFrame = 100;
t = Math.min(time,framesToTime(stopFrame));
wiggle(3,10,1,.5,t)
Dan
-
5. Re: Start or Stop expression at a given frame?
Mathias Moehl Apr 13, 2018 11:35 PM (in response to Dan Ebberts)If you are willing to purchase an additional extension, my Expression Timeline is a generic solution to limit expressions to a specific range, fade them in and out and even transition from one expression to another one.
Expression Timeline 2 - aescripts + aeplugins - aescripts.com
-
6. Re: Start or Stop expression at a given frame?
theangietaylor Apr 14, 2018 1:16 AM (in response to GableIsAble)Add your wiggle
Create a new Null called "Control Layer"
To this add two Expression Control sliders, rename one "frequency" the other "amplitude"
Click on the padlock button in the effects Control panel to keep this visible for the next step
In the expression *** two new lines before wiggle and type;
f=
immediately drag the pickwhip from the expression to the "frequency" effect slider
add a semi colon after this
add a new line and type;
a=
immediately drag the pickwhip from the expression to the "amplitude" effect slider
add a semi colon after this
the next line should be your wiggle and it should read;
wiggle(f,a)
the entire expression should look something like this;
f=thisComp.layer("Controller").effect("frequency")("Slider");
a=thisComp.layer("Controller").effect("amplitude")("Slider");
w=wiggle(f,);
Now you have two sliders to control the frequency and amplitude of your expression
You can animate them to start and stop wherever you like
you can interpolate values or if you want values to suddenly change, Toggle Hold the keyframes
Here's a tutorial that will help you with this;