Adobe 65009963 Scripting Manual page 81

After effects cs4
Table of Contents

Advertisement

JavaScript Reference
KeyframeEase object
m y K e y = n e w K e y f r a m e E a s e (s p ee d, i n f l u e n c e ) ;
Description
The KeyframeEase object encapsulates the keyframe ease settings of a layer's AE property. There are two types
of ease, temporal and spatial, which are determined by the speed and influence settings. Both types are set
using the property's
setT empora lEaseAt K ey
page 136.
The constructor creates a KeyframeEase object. Both parameters are required.
: A floating-point value. Sets the
s p e e d
: A floating-point value in the range [0.1..100.0]. Sets the
i n f l u e n c e
Example
This example assumes that the Position, a spatial property, has more than two keyframes.
va r ea se In = n ew Ke yfr ameE as e( 0.5 , 50) ;
v a r e a se Ou t = n e w K e y fr am e E as e ( 0 .7 5 , 8 5 ) ;
va r m y P o s it i o n P ro p ert y = a p p. pro jec t .i te m( 1). l ay er (1) .p ro pe rty ( " P o si t i o n " )
m y P o s i t i o n P r o p e r t y . s e t T e m p o r a l E a s eA tK e y ( 2, [ ea s e I n], [e ase O ut ] );
This example sets the Scale, a temporal property with two dimensions. For 2D and 3D properties you must
set an
and
easeI n
e as eO ut
va r ea se In = n ew Ke yfr ameE as e( 0.5 , 50) ;
v a r e a se Ou t = n e w K e y fr am e E as e ( 0 .7 5 , 8 5 ) ;
va r myScalePro pe rty = app.proje c t. i t e m ( 1 ) .l ay e r ( 1 ). pr o p e r t y (" S c al e " )
m y S c al e Pro pe rty . se tT e m po ral E a se At Ke y (2 , [ eas eI n , easeIn , ea se In], [e aseO ut, ea seO ut , e aseO ut]);
Attributes
Attribute
Reference
s pe e d
"KeyframeEase speed attribute" on page 82
i n f l u e n c e
"KeyframeEase influence attribute" on page 81
KeyframeEase influence attribute
m y K ey . i n f l u e n c e
Description
The influence value of the keyframe, as shown in the Keyframe Velocity dialog box.
Type
Floating-point value in the range [0.1..100.0]; read/write.
method. See "Property setTemporalEaseAtKey() method" on
attribute.
s pe e d
value for each dimension:
KeyframeEase object
attribute.
i n fl u e n c e
Description
The speed setting for a keyframe.
The influence setting for a keyframe.
81
81

Advertisement

Table of Contents
loading

This manual is also suitable for:

Creative suite 3 after effects

Table of Contents