There is probably a more elegant way to do this with a single text animator for Fill Color, but this seems to work — note I am assuming your text looks something like this: “John Doe, Jim Smith, Jane Jones”
It’s easy to make a text animator work on words, but I couldn’t figure out a way to split it at the commas and colorize based on that result, so I found another way.
Try this:
On your text layer with all the comma separated names, apply this expression to the source text property:
value.replace(\/s\g,'_').replace(\,_\g,', ')
That should put underscores between all the first and last names, but keep the commas.
Now we can easily colorize every-other-name with a text animator. Just add a text animator for Fill Color, set the color as needed and add an Expression Selector to the animator and add this expression to the Amount:
textIndex % 2 * 100
Every-other-name should now be colorized.
To replace the underscores with spaces, add a new text animator (so you’ll have Animator 1 and Animator 2), this time for Character Value, set the Character Value to 32 (which is the ASCII code for a space), then add an Expression Selector to that Animator and enter this expression for Amount:
if ( text.sourceText.value[textIndex-1] == '_' ) { 100 } else { 0 }
That should find all the underscores and replace them with spaces.