copyToComp()

app.project.item(index).layer(index).copyToComp(intoComp)

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 layers collection in the target CompItem. Retrieve the copy using intoComp.layer(1).

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

into Comp The target composition, and CompItem object.

Returns

Nothing.

Other Tags

Posted in Layer object and tagged , , , , , , , , , , .