addCamera()

app.project.item(index).layers.addCamera(name,centerPoint)

Description

Creates a new camera layer and adds the CameraLayer object to this collection.
The new layer honors the Create Layers at Composition Start Time preference.

Parameters

name A string containing the name of the new layer.

centerPoint 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.

Other Tags

Posted in LayerCollection object and tagged , , , , , , , , , , , , , .