|
|
Example: Animate text with multiple selectors
This example uses the selectorValue parameter
in an Expression selector with the Wiggly selector to make a string
of characters flash on and off randomly.
- Create a new composition.
- Create a new text layer.
- In the Timeline panel, choose Opacity from the Animate
menu for the text layer.
- Expand the text layer and its animator in the Timeline
panel.
- Select the Range Selector and delete it.
- Choose Add > Selector > Wiggly
next to the Animator property group for the text layer.
- Choose Add > Selector > Expression.
If the Wiggly selector doesn’t come before the Expression selector,
drag the Wiggly selector above the Expression selector.
- Expand the Expression Selector.
- Expand the Amount property to reveal the expression.
The following expression appears by default:
selectorValue * textIndex/textTotal
- Replace the default expression text with the following
expression:
r_val=selectorValue[0];
if(r_val < 50)r_val=0;
if(r_val > 50)r_val=100;
r_val
- Set the opacity to 0%, and preview the composition.
|