Adobe AFTER EFFECTS CS3 PROFESSIONAL User Manual page 581

Hide thumbs Also See for AFTER EFFECTS CS3 PROFESSIONAL:
Table of Contents

Advertisement

Example: Animating with the propertyGroup method and propertyIndex attribute
Values of propertyGroup relative to brush stroke's Position property
A. propertyGroup(4) B. propertyGroup(3) C. propertyGroup(2) D. propertyGroup(1) E. Position's propertyIndex value is 2; Rotation's
propertyIndex value is 4.
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, creating swirling paint strokes:
propertyGroup(2).propertyIndex * time * 200
Animating a brush stroke with an expression
Key attributes and methods
When you access a Key object, you can get
expression gives you the value of the third Position keyframe:
The following expression, when written on an Opacity property with keyframes, ignores the keyframe values and
uses only the keyframes' placement in time to determine where a flash should occur:
d = Math.abs(time - nearestKey(time).time);
easeOut(d, 0, .1, 100, 0)
Return type: Number or Array.
value
Returns the value of the keyframe.
Return type: Number.
time
Returns the time of the keyframe.
A
B
C
D
E
method targets the Brush property group because that group is
propertyGroup
propertyIndex
,
, and
time
index
attribute in each Brush stroke then returns
properties from it. For example, the following
value
position.key(3).value
AFTER EFFECTS CS3
User Guide
.
575

Advertisement

Table of Contents
loading

Table of Contents