Controlling After Effects Expressions

Posted: March 9, 2009 at 3:20 am

So lets say you want to write an expression in After Effects that maybe….randomizes an exposure effect……but you only want it to happen for a certain duration. Whatth’eckdoyado?

if (time >= key(1).time&& time<=key(2).time) {
random(50,100)
} else{
value
}

Put that expression in, and set two keyframes for the variable it is controlling, and bingo bango - you’ve got an expression that runs only between keyframes 1 and 2!

Leave a Reply