-
Making every other word in a paragraph different colors
Hello,
I’m new to AE Expressions but familiar with MEL/Python/Java. It’s hard for me to figure out the correct syntax to make AE happy. Here’s the goal, to take a list of 900+ words and alternate each word between two fill colors. I have all the text in one main paragraph and using Text Animator with an Expression Selector should work.
The code below is my lame attempt. I have my colors and I’m trying to use the textIndex of the Expression Selector to find the words in the paragraph. I want to see if the textIndex is even/odd then apply one of the colors, otherwise the other color.
I believe I’m close but if there’s an easier way please explain.
blueColor = [27,101,105]
peachColor = [234,109,85]if ((textIndex % 2) = 0)
{
textIndex = blueColor
}
else
{
textIndex = peachColor
}