Example: To Animate Text Position With Expressions - Adobe AFTER EFFECTS 7.0 Manual

Table of Contents

Advertisement

Choose Add > Selector > Expression. If the Wiggly selector doesn't come before the Expression selector, drag the
7
Wiggly selector above the Expression selector.
Expand the Expression Selector.
8
Expand the Amount property group to reveal the expression. The following expression appears by default:
9
s elec torVa lue * textIndex/textTot a l
Replace the default expression text with the following expression:
10
r _ v a l = s e l e c tor Va lu e [ 0 ] ;
i f ( r _ v a l < 5 0 ) r _ v a l = 0 ;
i f ( r _ v a l > 5 0 ) r _ v a l = 1 0 0 ;
r _ v a l
11
Set the opacity to 0%, and preview your animation.
See also
"To create a composition" on page 109
"To enter point text" on page 283
"About the Expression selector" on page 302
"Wiggly selector properties" on page 302
"Methods for previewing compositions" on page 134

Example: To animate text position with expressions

This example uses the
textIndex
Create a new composition.
1
2
Create a new text layer.
Expand the text layer in the Timeline panel to view the text properties. Add a position animator group from the
3
Animate menu.
4
Delete the default Range selector. Be sure to click in the Timeline panel first to deselect the animator group, and
then select Range Selector 1 to delete it.
Add an Expression selector by selecting the Add menu, then choosing Selector > Expression. Expand the
5
Expression selector to reveal its options.
6
Expand the Amount property to reveal the expression. The following expression appears by default:
s elec torVa lue * textIndex/textTot a l
Replace the default expression with the following expression:
7
s eedR andom(textIndex);
amt = line ar(t ime, 0, 5, 200 * textIndex / textTot al, 0);
w i g g l e ( 1 , amt ) ;
The
method is used in this example to ramp down the maximum wiggle amount over time.
l i n e ar
Set the vertical position value. The greater the value, the more the characters wiggle.
8
Preview your animation.
9
and
attributes with the
textTot a l
expression to animate a line of text.
w i g g le
ADOBE AFTER EFFECTS 7.0
311
User Guide

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents