ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Return character index

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Boris Wilmot
Return character index
on Jan 3, 2019 at 10:11:02 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 !


Return to posts index

Boris Wilmot
Re: Return character index
on Jan 3, 2019 at 10:21:48 pm

Wooops

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

text.sourceText.indexOf("/");


Return to posts index

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