Adobe 65009963 Scripting Manual page 137

After effects cs4
Table of Contents

Advertisement

JavaScript Reference
Property setValue() method
a pp .p r o j e c t .i te m (i nd e x) .laye r( in de x) .p r op e rt y S p ec .set Valu e( ne wV al ue )
Description
Sets the static value of a property that has no keyframes.
If the named property has keyframes, this method generates an exception and displayes an error. To set the
value of a property with keyframes, use "Property setValueAtTime() method" on page 137 or "Property
setValueAtKey() method" on page 137.
Parameters
ne wV alue
A value appropriate for the type of property being set; see "Property propertyValueType attribute" on page 131.
Returns
Nothing.
Property setValueAtKey() method
a pp .p r o j e c t .i te m (i nd e x) .laye r( in de x) .p r op e rt y S p ec .set Valu eAt K ey(k ey I n de x, ne wV a lue )
Description
Finds the specified keyframe and sets its value.
If the named property has no keyframes, or no keyframe with the specified index, this method generates an
exception and displays an error.
Parameters
k ey I n d ex
The index for the keyframe. An integer in the range [1..numKeys], as returned by the
Ke y I n d ex
A value appropriate for the type of property being set; see "Property propertyValueType attribute" on
ne wV alue
page 131.
Returns
Nothing.
Property setValueAtTime() method
a pp .p r o j e c t .i te m (i nd e x) .laye r( in de x) .p r op e rt y S p ec .set Valu eAt T ime( t i m e , n e w Va l u e )
Description
Sets the value of a keyframe at the specified time. Creates a new keyframe for the named property, if one does
not currently exist for the specified time, and sets its value.
Parameters
t im e
ne wV alue
method.
The time in seconds, a floating-point value. The beginning of the composition is 0.
A value appropriate for the type of property being set; see "Property propertyValueType
attribute" on page 131.
Property object
137
a dd K ey
near est-
or
137

Advertisement

Table of Contents
loading

This manual is also suitable for:

Creative suite 3 after effects

Table of Contents