After Effects Expression Elements Reference; Using The Expression Elements Reference - Adobe AFTER EFFECTS 7.0 Manual

Table of Contents

Advertisement

Animating a brush stroke with an expression
1
Open a new composition, and choose Layer > New > Solid to create a new solid layer. Click Make Comp Size in
the Solid Footage Settings dialog box.
2
Double-click the solid in the Composition panel to open it in the Layer panel.
3
Select the Brush tool from Tools, and draw a stroke in the Layer panel. Modify the stroke options as desired.
Expand the solid layer in the Timeline panel, expand the Effects property group, expand the Paint property group,
4
expand the Brush property group, and then expand the Transform property group.
Select the Rotation property, and choose Animation > Add Expression.
5
Type the following expression in the expression text field in the timeline:
6
prop er tyGroup(2).prop er t yIndex * time * 200
Click outside the expression field, or press Enter on the numeric keypad to activate the expression.
7
Select Brush 1, and press Ctrl+D (Windows) or Command+D (Mac OS) multiple times to duplicate the brush.
8
9
Press the spacebar to preview your animation.
In this example, each brush stroke's
two property groups up from the Rotation property. The
a unique value for each Brush stroke. The resulting value is then multiplied by the time and 200 and applied to each
rotation value, rotating each brush stroke differently.

After Effects expression elements reference

Using the expression elements reference

Use the After Effects expression elements along with standard JavaScript elements to write your expressions.
Remember that you can also use the Expression Language menu at any time to insert functions into an expression.
If an argument contains an equal sign (
included default value if you don't specify a different value.
method targets the Brush property group because that group is
prop er t y Group
prop er t y Index
) and a value (such as
=
attribute in each Brush stroke then returns
or
), then the argument uses the
t = t i m e
w i dt h = . 2
ADOBE AFTER EFFECTS 7.0
570
User Guide

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents