Page 1 of 1

trigger point of expression

Posted: October 17th, 2007, 2:48 pm
by Tom
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.

Posted: October 17th, 2007, 7:58 pm
by Dan Ebberts
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

Posted: October 17th, 2007, 9:52 pm
by Tom
BINGO!

THANKS DAN

Posted: October 17th, 2007, 10:01 pm
by nab
"If you have AE CS3...", AE 6.5 or AE 7.0 8)

Posted: October 17th, 2007, 10:24 pm
by Dan Ebberts
"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