Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Return character index

  • Return character index

    Posted by Boris Wilmot on January 3, 2019 at 10:11 pm

    Hello everyone,

    Is there a way to look for a specific character and return its index ?

    My goal here is to have two parts of text separated by a / and give each part a specific color.
    I was thinking about using a Fill Color that would apply from the returned index to the end…

    Thx !

    Boris Wilmot replied 7 years, 4 months ago 1 Member · 1 Reply
  • 1 Reply
  • Boris Wilmot

    January 3, 2019 at 10:21 pm

    Wooops

    After a few extra minutes digging in the forum I found what I was looking for ☺

    text.sourceText.indexOf(“/”);

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