Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression Selector Amount 100 for lines of text including : sign

  • Expression Selector Amount 100 for lines of text including : sign

    Posted by Niels b Nielsen on October 17, 2017 at 11:35 pm

    Im trying to “dynamic text” a credit list for Premiere. I want every line with a : sign at the end to be highlighted through an expression for the Expression Selector. Every line with : should have a value of 100, the rest 0. Is this possible?

    Niels b Nielsen replied 8 years, 9 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    October 18, 2017 at 12:50 am

    If you have the Expression Selector Based On set to ‘Lines’, this should work:


    txt = text.sourceText.split("\r");
    str = txt[textIndex-1];
    if (str[str.length-1] == ":") 100 else 0

    Dan

  • Niels b Nielsen

    October 18, 2017 at 8:15 am

    Works well. Thanks for your quick help Dan!

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