Adobe 65009963 Scripting Manual page 93

After effects cs4
Table of Contents

Advertisement

JavaScript Reference
LayerCollection add() method
a pp .p r o j e c t .i te m (i nd e x) .l ay e r s .ad d (i t em , dur at i on )
Description
Creates a new AVLayer object containing the specified item, and adds it to this collection.
This method generates an exception if the item cannot be added as a layer to this CompItem.
Parameters
i te m
The AVItem object for the item to be added.
d u r a ti o n
Optional, the length of a still layer in seconds, a floating-point value. Used only if the item contains a piece of
still footage. Has no effect on movies, sequences or audio.
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 spec-
ify options under Still Footage.
Returns
AVLayer object.
LayerCollection addCamera() method
a pp .p r o j e c t .i te m (i nd e x) .laye rs .ad d C ame ra( n a m e , c en t e r P oi n t)
Description
Creates a new camera layer and adds the CameraLayer object to this collection.
Parameters
n a m e
A string containing the name of the new layer.
c e n t e r Poi n t
The center of the new camera, a floating-point array [x, y]. This is used to set the initial x and y values of the
new camera's Point of Interest property. The z value is set to 0.
Returns
CameraLayer object.
LayerCollection addLight() method
a pp .p r o j e c t .i te m (i nd e x) .l ay e r s .ad d L i g h t (n a m e, c en t e r P oi n t )
Description
Creates a new light layer and adds the LightLayer object to this collection.
Parameters
n a m e
c e n t e r Poi n t
du rat i on
value of the new layer. Otherwise, the
A string containing the name of the new layer.
The center of the new light, a floating-point array [x, y].
LayerCollection object
d u r a ti o n
value is set according to user
93
93

Advertisement

Table of Contents
loading

This manual is also suitable for:

Creative suite 3 after effects

Table of Contents