ae_create_layer
Add text, shape, solid, adjustment, or null layers to an After Effects composition. Set type, size, color, and timing to build editable layers in one undo step.
Instructions
Create a text, shape, solid, adjustment or null layer. Text is center-justified by default; use ae_center_layers to center any layer visually. One undo step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name or numeric item id. Omit to use the active composition. | |
| fill | No | shape: add a fill (default true). | |
| font | No | text: PostScript font name, e.g. 'Arial-BoldMT'. | |
| name | No | ||
| size | No | shape: [w, h] (default 200x200); solid/adjustment: [w, h] (default comp size). | |
| text | No | text: the text. | |
| type | Yes | ||
| color | No | text fill / shape fill / solid color. | |
| shape | No | shape: default rectangle. | |
| points | No | shape polygon/star points. | |
| duration | No | Layer duration in seconds (default: to the end of the comp). | |
| fontSize | No | ||
| position | No | [x, y] in comp pixels. Default: center. | |
| roundness | No | shape rectangle corner roundness. | |
| startTime | No | Time in seconds (composition time). | |
| strokeColor | No | Color: '#RRGGBB' or [r, g, b] in 0..1 (0..255 also accepted). | |
| strokeWidth | No | ||
| justification | No |