trigger point of expression

Moderators: Disciple, zlovatt

Post Reply
Tom
Posts: 5
Joined: August 30th, 2007, 8:23 pm
Location: Chandler, AZ USA
Contact:

Looking for the code to trigger an expression with a layer marker.

I have the code that triggers the expression with key frame number,

t=time-key(3).time

but woulfd prefer the flexibilty of the marker.


My level of understanding allows me to read, understand (maybe) and modify the code; however, I am not at a level where I can write it.

THANKS IN ADVANCE
Tom R.
Dan Ebberts
Posts: 320
Joined: June 26th, 2004, 10:01 am
Location: Folsom, CA
Contact:

This should work:

t = time - marker.key(1).time

If you have AE CS3, you can also index the marker via its comment, like this:

t = time - marker.key("marker comment here").time

Dan
Tom
Posts: 5
Joined: August 30th, 2007, 8:23 pm
Location: Chandler, AZ USA
Contact:

BINGO!

THANKS DAN
nab
Posts: 203
Joined: November 29th, 2005, 3:00 am
Location: Royan
Contact:

"If you have AE CS3...", AE 6.5 or AE 7.0 8)
Dan Ebberts
Posts: 320
Joined: June 26th, 2004, 10:01 am
Location: Folsom, CA
Contact:

"If you have AE CS3...", AE 6.5 or AE 7.0


Damn - that's right. You need CS3 to retrieve the comment field but not to use it as an index.

Dan
Post Reply