Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Markers to trigger per-word reveal

  • Markers to trigger per-word reveal

    Posted by Thomas Hannen on April 18, 2022 at 5:37 am

    I’d like to write an expression to trigger each word in a text layer to appear every time a marker is present on the layer- (progressively revealing more words as more markers are passed on the timeline).

    I’ve found this expression which triggers per character:

    c = thisLayer;

    count = 0;

    for (i = 1; i <= c.marker.numKeys; i++){

    if (c.marker.key(i).time > time) break;

    count++;

    }

    var result = value.substring(0, count); // trim

    resultc = thisLayer; count = 0; for (i = 1; i <= c.marker.numKeys; i++){ if (c.marker.key(i).time > time) break; count++; } var result = value.substring(0, count); // trim result

    But I can’t work out how to modify it to work per-word. Any ideas?

    Many thanks,

    Tom

    Wyatt Kedinger replied 4 years ago 3 Members · 2 Replies
  • 2 Replies

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