-
Retrieving values from ‘source text’
Hi folks.
I’m trying to set up an expression to automatically change the colors of words in a text layer while leaving the punctuation symbols black.
So far, in the set up, I have 3 layers (I may simplify this to two); the layering order is arbitrary.
The bottom layer contains the main source text and, its ‘video-eye’ is turned off.
The middle layer is to contain the words (with the changing colors), but no punctuation.
And, the top layer contains only the punctuation (black and unchanging).In the top two layers, I have pick-whipped the ‘Source Text’ to the bottom layer.
In mocking this up, I added a few Opacity Animators, set to zero, and the range selectors were set to character index numbers that would hide everything but the punctuation in the one layer.
And, conversely, I hid all punctuation the other layer.
In automating this, I’ll need to retrieve a few values.
First, the maximum index number for the characters in the Source Text.
Next, I’ll need to step through the Source Text string, evaluating each character to determine if it is an alpha-numeric letter or a mark of punctuation.
Once I discover a mark of punctuation, that index value will have to be stored and passed to a Range Selector.After Effects seems to already know the maximum index value of a text string.
But, I can’t find those variable names.Tremendous thanks in advance!
-Ed