Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Change text colour based on character?

  • Change text colour based on character?

    Posted by Leo Koppel on November 8, 2009 at 12:05 am

    I have written an expression that generates a random stock ticker in a text layer. I’d like to be able to have particular characters appear a different colour (namely the up/down arrows, unicode 9650 and 9660).
    Would animating Fill Color using an expression selector be able to do this? I played around with that and the textIndex property but wasn’t able to figure out how.

    If that is possible, would changing the font also be possible or is it not affected by expressions?

    //This didn't work but it may help show what I'm trying to do (for the expression selector):
    if(text.sourceText.charCodeAt(textIndex) == 9650)
    100
    else
    0

    Leo Koppel replied 16 years, 6 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

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