addLight()

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

Description

Creates a new light layer and adds the LightLayer 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 light, a floating-point array [x, y].

Returns

LightLayer object.

Other Tags

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