Mastering Marker Triggers: Unlock Dynamic Animation in AE!

A boilerplate expression for triggering specific actions or events at designated markers in your timeline. It’s versatile and can be applied to any animatable property to activate actions at specific points in time.

if(marker.numKeys>0) {
if(marker.key(n).time>time) {
} if(n==0) {
} else {
t=time-marker.key(n).time; //time since marker
// your expression
frequency = 2; // wiggles per second
amplitude = 40; // amount of pixels to wiggle
secondsToLoop = 2; // time to loop in seconds
// ——–
t = time % secondsToLoop;
wiggle1 = wiggle(frequency, amplitude, 1, 0.5, t);
wiggle2 = wiggle(frequency, amplitude, 1, 0.5, t – secondsToLoop);
x = linear(t, 0, secondsToLoop, wiggle1, wiggle2);
x; }
} else {
}Pro tip: Go to AEJuice Pack Manager – Expressions Pack to apply this expression in 1 click. Here are direct links for the latest plugin version:
Windows / macOS

Click here to receive more tips by email.

Get 5% off when you sign up

By subscribing you agree to your email being stored and used to receive the emails in accordance to our Privacy Policy