138
JavaScript Reference
Property object
138
Returns
Nothing.
Property setValuesAtTimes() method
a p p . p r o j e c t . i t e m
( i n d e x )
. l a y e r
( i n d e x ) . p r o p e r t y S p e c
. s e t V a l u e s A t T i m e s (
t i m e s , n e w V a l u e s
)
Description
Sets values for a set of keyframes at specified of times. Creates a new keyframe for the named property, if one
does not currently exist for a specified time, and sets its value.
Times and values are expressed as arrays; the arrays must be of the same length.
Parameters
Returns
Nothing.
Property unitsText attribute
a p p . p r o j e c t . i t e m
( i n d e x )
. l a y e r
( i n d e x ) . p r o p e r t y S p e c
. u n i t s T e x t
Description
The text description of the units in which the value is expressed.
Type
String; read-only.
Property value attribute
a p p . p r o j e c t . i t e m
( i n d e x )
. l a y e r
( i n d e x ) . p r o p e r t y S p e c
. v a l u e
Description
The value of the named property at the current time.
•
If
e x p r e s s i o n E n a b l e d
is true, returns the evaluated expression value.
•
If there are keyframes, returns the keyframed value at the current time.
•
Otherwise, returns the static value.
The type of value returned depends on the property value type. See examples for “Property object” on
page 118.
Type
A value appropriate for the type of the property (see “Property propertyValueType attribute” on page 131);
read-only.
t im e s
An array of times, in seconds. Each time is a floating-point value. The beginning of the compo-
sition is 0.
n e w V a l u e s
A array of values appropriate for the type of property being set; see “Property propertyValue-
Type attribute” on page 131.
Summary of Contents for 65009963 - After Effects CS4
Page 1: ...SCRIPTING GUIDE...