Adobe 65009963 Scripting Manual page 94

After effects cs4
Table of Contents

Advertisement

JavaScript Reference
Returns
LightLayer object.
LayerCollection addNull() method
a pp .p r o j e c t .i te m (i nd e x) . l a y e r s . a d d N u l l ( dur ati on )
Description
Creates a new null layer and adds the AVLayer object to this collection. This is the same as choosing
Layer > New > Null Object.
Parameters
d u r a ti o n
Optional, the length of a still layer in seconds, a floating-point value.
If supplied, sets the
preferences. By default, this is the same as the duration of the containing CompItem. To set another preferred
value, choose Edit > Preferences > Import (Windows) or After Effects > Preferences > Import (Mac OS), and specify
options under Still Footage.
Returns
AVLayer object.
LayerCollection addShape() method
a pp .p r o j e c t .i te m (i nd e x) .l ay e r s .ad d Sh ap e ( )
Description
Creates a new ShapeLayer object for a new, empty Shape layer. Use the ShapeLayer object to add properties,
such as shape, fill, stroke, and path filters.
This is the same as using a shape tool in "Tool Creates Shape" mode. Tools automatically add a vector group
that includes Fill and Stroke as specified in the tool options.
Parameters
None
Returns
ShapeLayer object.
LayerCollection addSolid() method
a pp .p r o j e c t .i te m (i nd e x) .l ay e r s .ad d So l id ( co l or , n am e , w idt h, h e igh t , p i xe l As p e ct , d u r at i on )
Description
Creates a new SolidSource object, with values set as specified; sets the new SolidSource as the
value of a new FootageItem object, and adds the FootageItem to the project. Creates a new AVLayer object,
sets the new FootageItem as its
Parameters
c o l o r
The color of the solid, an array of four floating-point values, [R, G, B, A], in the range [0.0..1.0].
du rat i on
value of the new layer. Otherwise, the
, and adds the layer to this collection.
s o u r c e
LayerCollection object
d u r a ti o n
value is set according to user
m a i n S o u r ce
94
94

Advertisement

Table of Contents
loading

This manual is also suitable for:

Creative suite 3 after effects

Table of Contents