LightLayer object

app.project.item(index).layer(index)
Description

The LightLayer object represents a light layer within a composition. Create it using the LayerCollection

object’s addLight method; see “LayerCollection addLight() method” on page 97. It can be accessed in an item’s

layer collection either by index number or by a name string.

- LightLayer is a subclass of Layer. All methods and attributes of Layer are available when working with Light-

Layer. See “Layer object” on page 86.

AE Properties

LightLayer defines no additional attributes, but has different AE properties than other layer types. It has the

following properties and property groups:

Marker
Tr a n s f o r m
Point of Interest
Position
Scale
Orientation
X Rotation
Y Rotation
Rotation
Opacity
Light Options
Intensity
Color
Cone Angle
Cone Feather
Casts Shadows
Shadow Darkness
Shadow Diffusion
Attributes
LightLayer lightType attribute
app.project.item(index).layer(index).lightType
Description

For a light layer, its light type.

Trying to set this attribute for a non-light layer produces an error.

Attribute Reference Description
lightType “LightLayer lightType attribute” on page 100 For light layers, the type of light.

101

After Effects scripting reference LightLayer object
Type

A LightType enumerated value; read/write. One of:

LightType.PARALLEL
LightType.SPOT
LightType.POINT
LightType.AMBIENT