-
Change text colour based on character?
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
Sorry, there were no replies found.