Adobe 65009963 Scripting Manual page 120

After effects cs4
Table of Contents

Advertisement

JavaScript Reference
Method
k ey I n T e m po r al E a s e()
k ey O u tT em p o r a lE as e( )
s e t T e m p o r a l C o n t in u o u s A t K e y ( )
keyTem por alCon tinuou s()
s e t T e m p o r a l A u t o Be z i e r A t K e y ( )
k eyTem por alAu toB ezier ()
s e t Sp a ti al C o n ti n u o u sA tK e y ( )
k ey S pa ti a l C o n t in u o u s ( )
s e t Sp a ti al A u toB e z i e r A tK e y
k ey S pa ti a l A u t o Be z ie r ( )
s e t R o v i n g A tK e y ( )
k ey R o v in g ()
s et Se l ecte dA tK ey( )
k ey S e l e c t ed ( )
Example: Get and set the value of opacity
v a r m y P r o p e r t y = m yL ay e r . o p a c i t y ;
/ / o p ac i t y h as p r o p e r t y V a l u e T y p e o f O n e D, an d i s s t o r e d as a f l o a t
m y P r o p e r t y . s e t V a l u e ( 0 . 5 );
// Va riable myOp acit y is a f l oat va lue
va r myO pa c ity = m y Pro pe rty. valu e;
Example: Get and set the value of a position
va r myProper ty = m yL ayer. po sit io n ;
/ / p os it i on ha s p ro pe rty V al ue T y pe of T hree D_ S P AT IA L , a n d i s s t o r e d a s a n a r r ay o f 3 f l o a t s
myProper ty.set Va lue([1 0.0 , 30 .0, 0 .0]);
/ / V a r i a b l e m y P o s i t i o n is an a r r a y of 3 f l o at s
v a r m y P o s it i o n = m y P r o p e rt y. va l u e;
Example: Change the value of a mask shape to be open instead of closed
v a r m y M a s k = m y l a y e r .m a s k ( 1 ) ;
v a r m y P r o p e r t y = m yM as k . m a s k P a t h ;
myShape = myPro pe rty.v alue ;
Reference
"Property keyInTemporalEase() method" on
page 126
"Property keyOutTemporalEase() method"
on page 127
"Property setTemporalContinuousAtKey()
method" on page 136
"Property keyTemporalContinuous()
method" on page 129
"Property setTemporalAutoBezierAtKey()
method" on page 135
"Property keyTemporalAutoBezier()
method" on page 129
"Property setSpatialContinuousAtKey()
method" on page 134
"Property keySpatialContinuous() method"
on page 128
"Property setSpatialAutoBezierAtKey()
method" on page 134
"Property keySpatialAutoBezier() method"
on page 128
"Property setRovingAtKey() method" on
page 133
"Property keyRoving() method" on page 127 Reports whether a keyframe is roving.
"Property setSelectedAtKey() method" on
page 134
"Property keySelected() method" on
page 128
Property object
120
Description
Gets the "in" temporal ease for a key.
Gets the "out" temporal ease for a key.
Sets whether a keyframe has temporal
continuity.
Reports whether a keyframe has tem-
poral continuity.
Sets whether a keyframe has temporal
auto-Bezier.
Reports whether a keyframe has tem-
poral auto-Bezier.
Sets whether a keyframe has spatial
continuity.
Reports whether a keyframe has spatial
continuity.
Sets whether a keyframe has spatial
auto-Bezier.
Reports whether a keyframe has spatial
auto-Bezier.
Sets whether a keyframe is roving.
Sets whether a keyframe is selected.
Reports whether a keyframe is selected.
120

Advertisement

Table of Contents
loading

This manual is also suitable for:

Creative suite 3 after effects

Table of Contents