Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions CS4 script not working in CS5

  • CS4 script not working in CS5

    Posted by Dennis Cheung on May 11, 2011 at 3:39 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

    Dan Ebberts replied 15 years ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    May 11, 2011 at 4:23 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

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy