Page 1 of 1

Triggering expression on marker

Posted: March 25th, 2009, 9:10 am
by ilmeri
Hi! I've been looking for an expression like this for some time, but havn't had any success yet.
I've found some, but never got them to work.

Found this from AE CS4 help. It is supposed to execute a wobble expression on scale on every marker.
But when i paste it to scale property, nothing happens. What's wrong? I'm using CS4.

n = 0;
t = 0;
if (marker.numKeys > 0){
n = marker.nearestKey(time).index;
if (marker.key(n).time > time) n--;
}
if (n > 0) t = time - marker.key(n).time;

amp = 15;
freq = 5;
decay = 3.0;

angle = freq * 2 * Math.PI * t;
scaleFact = (100 + amp * Math.sin(angle) / Math.exp(decay * t)) / 100;
[value[0] * scaleFact, value[1] / scaleFact];



Thanks!

Re: Triggering expression on marker

Posted: March 25th, 2009, 10:37 am
by Dan Ebberts
It works for me. You did apply some layer markers to test it, right?

Dan

Re: Triggering expression on marker

Posted: May 6th, 2012, 8:23 pm
by ritka
I have a combined transition effect on an adjustment layer with two control (amount and duration sliders) and I want to triggering this with layer markers. How can i solve it to start before the marker, at the marker reaches the maximum amount, and return to normal value?