Layer
| Member | Notes |
|---|---|
name | Get/set. |
index | 1-based. |
inPoint, outPoint | Get/set, seconds. Setting trims. |
startTime | Read-only. |
parent | Get/set a layer or null. The layer keeps its place on screen. |
timeParent | Get/set a layer or null. Brio only: this layer slides along the timeline (keyframes too) when that one slides. Nothing else is inherited, and trims don't move it. A loop throws. |
selected | Get/set. |
enabled, nullLayer, hasVideo | Read-only. |
transform | The Transform group. |
Effects / property("Effects") | The Effects group. See Effects. |
property(name) | A Transform property by name, "Transform", "Effects", "Text" or "Source Text"; null if the layer has none. |
text, sourceText | Text layers only (else null). |
position, scale, rotation, opacity, anchorPoint, xRotation, yRotation | Shortcuts to Transform properties. |
remove(), duplicate() | |
moveToBeginning(), moveToEnd(), moveBefore(layer), moveAfter(layer) | |
setParentWithJump, sourceRectAtTime | Throw — not available. |
Transform group
Properties: Anchor Point, Position, Scale, Rotation (also Z Rotation), Opacity, and on 3D layers Z Position, X Rotation, Y Rotation.
Shortcuts: transform.position, .anchorPoint, .scale, .rotation, .zRotation, .opacity, .xRotation, .yRotation. AE matchNames (ADBE Position, ADBE Rotate Z, …) work too.
Property groups
group.property(name | matchName | index) (null for a name it doesn't have), group.numProperties, group.name, group.matchName.
Layers and groups can be called like property(), as in ExtendScript:
layer("Transform")("Position")
layer.mask(1)
layer("Effects")("Blur")