Adobe 65009963 Scripting Manual page 86

After effects cs4
Table of Contents

Advertisement

JavaScript Reference
Layer copyToComp() method
a pp .p r o j e c t .i te m (i nd e x) .laye r( in de x) . c o py T o C o m p (i n t oC o m p )
Description
Copies the layer into the specified composition. The original layer remains unchanged. Creates a new Layer
object with the same values as this one, and prepends the new object to the
CompItem. Retrieve the copy using
Copying in a layer changes the index positions of previously existing layers in the target composition. This is
the same as copying and pasting a layer through the user interface.
Parameters
i n t o C o m p
Returns
Nothing.
Layer duplicate() method
a pp .p r o j e c t .i te m (i nd e x) .laye r( in de x) .d up licat e( )
Description
Duplicates the layer. Creates a new Layer object in which all values are the same as in this one. This has the
same effect as selecting a layer in the user interface and choosing Edit > Duplicate, except the selection in the
user interface does not change when you call this method.
Parameters
None.
Returns
Layer object.
Layer enabled attribute
a pp .p r o j e c t .i te m (i nd e x) .laye r( in de x) .e nabled
Description
When true, the layer is enabled; otherwise false. This corresponds to the video switch state of the layer in the
Timeline panel.
Type
Boolean; read/write.
Layer hasVideo attribute
a pp .p r o j e c t .i te m (i nd e x) .laye r( in de x) .h as Vid eo
Description
When true, the layer has a video switch (the eyeball icon) in the Timeline panel; otherwise false.
i n t o C o m p .laye r( 1)
The target composition, and CompItem object.
collection in the target
lay e r s
.
Layer object
86
86

Advertisement

Table of Contents
loading

This manual is also suitable for:

Creative suite 3 after effects

Table of Contents