Triggering expression on marker

Moderators: Disciple, zlovatt

Post Reply
ilmeri
Posts: 10
Joined: November 9th, 2007, 1:01 am

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!
Dan Ebberts
Posts: 320
Joined: June 26th, 2004, 10:01 am
Location: Folsom, CA
Contact:

It works for me. You did apply some layer markers to test it, right?

Dan
ritka
Posts: 10
Joined: March 25th, 2010, 10:30 am

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?
Post Reply