Activity › Forums › Adobe After Effects › animating expression on/off
-
animating expression on/off
Posted by Justin Porter on June 13, 2006 at 4:46 pmIs there any way to animate the effect of an expression on or off during the course of an animation?
Alex Ezorsky replied 15 years, 6 months ago 8 Members · 15 Replies -
15 Replies
-
Mike Clasby
June 13, 2006 at 4:58 pmWhat expression? Many times you can setup an expression tied to a Slider, then leave the slider at “0” until you want the expression to kick in, but somtimes this doesn’t work, it depends on the property and expression.
For example, the common Wiggle expression for position:
wiggle (5,20)
If you add a slider to the layer, then highlight the “5” in the wiggle expression, then pickwhip the highlighted 5 to the Slider, the epression changes to:
wiggle (effect(“Slider Control”)(“Slider”),20)
and the slider at “0” tells the expression 0 Frequency on the wiggle, so nothing wiggles. You can also put a slider in place of the “20” (Amplitude).
Give an example of the expression, por favor.
-
Steve Roberts
June 13, 2006 at 5:01 pmYou can’t animate the little “f” toggle, but …
… if the effect has a “blend with original” parameter, you can animate that from 100 to 0 using hold keyframes. You could do the same if it has a parameter that makes it invisible, say Shine’s “shine opacity” parameter.
If not, you could duplicate the effected layer and switch off the effect, then animate the opacity of this unaffected layer with hold keyframes.
Which effect are you talking about?
-
Mylenium
June 13, 2006 at 5:09 pm[yikesmikes] ”
What expression?”Yes, I agree, it would be crucial to know what type of expression you need, there’s so many ways to do things…
Mylenium
[Pour Myl
-
Dan Ebberts
June 13, 2006 at 5:39 pmOn way is to apply a checkbox control to your layer, keyframe the control on and off, and add an expression like this to your property:
control = effect(“Checkbox Control”)(“Checkbox”) ;
if (control == 1){
wiggle(5,50); // your expression goes here
}else{
value;
}Dan
-
Mike Clasby
June 13, 2006 at 6:27 pmI thought the Checkbox Control was applicable, I just didn’t know how, Thanks for the Checkbox expression.
-
Justin Porter
June 13, 2006 at 6:55 pmwow, thanks for all the responses. The expression I’m using is a pretty standard wiggle “position.wiggle(50,5)”. Here’s the challenge. I have this expression applied to about 33 layers individually so adding a slider control to each and then keyframing them all individually would be sort of a pain in the neck. Is there any way I can attach all the expressions to a single slider? Even being able to key them in a boolean fashion would work for what I’m trying to do (I want the comp to appear to freeze for a moment)
-
Colin Braley
June 13, 2006 at 6:59 pmI would just make a single slider, link the expression on one layer to it and then select Edit>Copy expression only. After that select all the layers which you want to have the same expression and click paste.
~Colin Braley -
Mike Clasby
June 13, 2006 at 7:36 pmThe cleanest way to do it is Add the slider to a null layer, name it something like Slider Control, and then set up the expression (pickwhip) to that slider, then do what Colin said above.
People often set up Nulls as control layers even with several controls, then they’re easy to fnd even for someone who didn’t set it up.
-
Justin Porter
June 13, 2006 at 8:03 pmso how do I add a slider to a layer? Once I’ve done that, how do I link the expression? Thanks for the help so far.
Reply to this Discussion! Login or Sign Up