ae_set_layer
Change After Effects layer properties and transforms—name, parent, timing, position, scale, rotation, opacity, text—or write keyframes at a given time in one undo step.
Instructions
Change layer settings and transform: name, enabled, 3D, label, parent, timing, anchorPoint, position, scale, rotation, opacity, and text (text, font, fontSize, fillColor, strokeColor, strokeWidth, justification, tracking, leading). Pass time to write keyframes instead of static values. One undo step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name or numeric item id. Omit to use the active composition. | |
| font | No | ||
| name | No | ||
| text | No | ||
| time | No | Optional: set transform/text values as keyframes at this time. | |
| label | No | Label color index 0..16. | |
| layer | Yes | Layer name or 1-based index. | |
| scale | No | Percent: 50 or [50, 50]. | |
| parent | No | Parent layer, or null to unparent. | |
| threeD | No | ||
| enabled | No | ||
| inPoint | No | Time in seconds (composition time). | |
| leading | No | ||
| opacity | No | 0..100. | |
| fontSize | No | ||
| outPoint | No | Time in seconds (composition time). | |
| position | No | ||
| rotation | No | Degrees (Z rotation for 3D layers). | |
| tracking | No | ||
| fillColor | No | Color: '#RRGGBB' or [r, g, b] in 0..1 (0..255 also accepted). | |
| startTime | No | Time in seconds (composition time). | |
| motionBlur | No | Layer motion blur switch; turning it on also enables the comp switch. | |
| trackMatte | No | Matte layer (AE 2023+), or null to remove the track matte. | |
| anchorPoint | No | ||
| strokeColor | No | Color: '#RRGGBB' or [r, g, b] in 0..1 (0..255 also accepted). | |
| strokeWidth | No | ||
| matteVisible | No | Show (true) or hide the matte layer itself after assigning it. | |
| justification | No | ||
| trackMatteType | No | Default alpha. |