165
JavaScript Reference
Shape object
165
Attributes
Shape closed attribute
s h a p e O b j e c t
. v a lu e . c l o s e d
Description
When true, the first and last vertices are connected to form a closed curve. When false, the closing segment is
not drawn.
Type
Boolean; read/write.
Shape inTangents attribute
s h a p e O b j e c t
. v a lu e . i n T a n g e n t s
Description
The incoming tangent vectors, or direction handles, associated with the vertices of the shape. Specify each
vector as an array of two floating-point values, and collect the vectors into an array the same length as the
v e r t i c e s
array.
Each tangent value defaults to [0,0]. When the mask shape is not RotoBezier, this results in a straight line
segment.
If the shape is in a RotoBezier mask, all tangent values are ignored and the tangents are automatically calcu-
lated.
Type
Array of floating-point pair arrays; read/write.
Shape outTangents attribute
s h a p e O b j e c t
. v a lu e . o u t T a n g e n t s
Description
The outgoing tangent vectors, or direction handles, associated with the vertices of the shape. Specify each
vector as an array of two floating-point values, and collect the vectors into an array the same length as the
v e r t i c e s
array.
Each tangent value defaults to [0,0]. When the mask shape is not RotoBezier, this results in a straight line
segment.
If the shape is in a RotoBezier mask, all tangent values are ignored and the tangents are automatically calcu-
lated.
Attribute
Reference
Description
c l o s e d
“Shape closed attribute” on page 165
When true, the shape is a closed curve.
v e r t i c e s
“Shape vertices attribute” on page 166
The anchor points of the shape.
i n T a n g e n t s
“Shape inTangents attribute” on page 165
The tangent vectors coming into the shape vertices.
o u t T a n g e n t s
“Shape outTangents attribute” on page 165
The tangent vectors coming out of the shape vertices.
Summary of Contents for 65009963 - After Effects CS4
Page 1: ...SCRIPTING GUIDE...