-
Highlight specific word with a symbol in front supporting line breaks
Hi
I found this expression making it able to color fill a specific word in a text layer.
words = text.sourceText.split(” “);
currentWord = words[textIndex-1];
if(currentWord.charAt(0)==”@”){color=100}else{color = 0};
[color,color,color]
It is used with fill color animator + expression selector based on words.
I can’t get it to work if the text is in two or more lines. Is it possible to get to work in multiple lines?
Also, would it be possible to instead do the expression, so that it color fills multiples words within the symbols < and >.
“Here is an example <where these four words>
should be colored”