Light Layer
LightLayer
¶
LightLayer(
auto_orient: AutoOrientType,
comment: str,
containing_comp: CompItem,
effects: list[PropertyGroup],
enabled: bool,
frame_in_point: int,
frame_out_point: int,
frame_start_time: int,
id: int,
in_point: float,
label: Label,
layer_type: str,
locked: bool,
markers: list[MarkerValue],
name: str,
null_layer: bool,
out_point: float,
_parent_id: int,
start_time: float,
shy: bool,
solo: bool,
stretch: float,
text: PropertyGroup | None,
time: float,
transform: list[Property],
light_type: LightType,
)
Bases: Layer
The LightLayer object represents a light layer within a composition.
Info
LightLayer is a subclass of Layer object. All methods and
attributes of Layer are available when working with LightLayer.
See: https://ae-scripting.docsforadobe.dev/layer/lightlayer/
Attributes¶
auto_orient
¶
auto_orient: AutoOrientType
The type of automatic orientation to perform for the layer.
containing_comp
¶
The composition that contains this layer. Set after parsing when the full project structure is available.
frame_in_point
¶
frame_in_point: int
The "in" point of the layer, expressed in composition time (frames). This
is the first frame where the layer becomes visible. The binary format
stores this relative to start_time; parsed value is absolute composition
time.
frame_out_point
¶
frame_out_point: int
The "out" point of the layer, expressed in composition time (frames). This is the first frame where the layer is no longer visible. Clamped to composition duration to match ExtendScript behavior.
frame_start_time
¶
frame_start_time: int
The start time of the layer, expressed in composition time (frames). This determines where the layer's first frame of content appears in the composition timeline.
id
¶
id: int
Unique and persistent identification number used internally to identify a Layer between sessions.
in_point
¶
in_point: float
The "in" point of the layer, expressed in composition time (seconds). This
is the time at which the layer starts being visible in the composition.
The binary format stores this relative to start_time as a signed integer;
parsed value is absolute composition time.
label
¶
label: Label
The label color. Colors are represented by their number (0 for None, or 1 to 16 for one of the preset colors in the Labels preferences).
locked
¶
locked: bool
When True, the layer is locked. This corresponds to the lock toggle in
the Layer panel.
out_point
¶
out_point: float
The "out" point of the layer, expressed in composition time (seconds).
This is the time at which the layer stops being visible in the composition.
Clamped to composition duration to match ExtendScript API behavior (a
layer's out_point cannot exceed its containing composition's duration).
The binary format stores this relative to start_time.
shy
¶
shy: bool
When True, the layer is "shy", meaning that it is hidden in the Layer
panel if the composition's "Hide all shy layers" option is toggled on.
start_time
¶
start_time: float
The start time of the layer, expressed in composition time (seconds).