FORUMS: list search recent posts

CS4 script not working in CS5

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Dennis Cheung
CS4 script not working in CS5
on May 11, 2011 at 3:39:36 pm

Hi all

I have a script for using marker comments on a text layer to update the source text. It's a way to make things easier for the next person to work on this project. It works fine in CS4, but CS5 ignores the second marker and beyond.

Can anyone help?

Thanks!

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


Return to posts index

Dan Ebberts
Re: CS4 script not working in CS5
on May 11, 2011 at 4:23:04 pm

That got messed up somewhere along the line. It shouldn't work in CS4 either. Try this:


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



Dan



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]