Create composition
ae_create_compCreate an empty composition in the open After Effects project, optionally open it in the viewer, and return its ID for adding layers later.
Instructions
Create a new, empty composition in the open project and (by default) open it in the viewer. Returns the new comp's id, name and settings: pass the id as comp to later calls (names need not be unique). Then add layers with ae_add_layer / ae_add_shape. To copy an existing comp use ae_duplicate_comp, to move existing layers into a new comp ae_precompose (both via ae_call).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the new comp (After Effects allows duplicate names). | |
| open | No | Open in viewer (default true). | |
| width | No | Pixels, 4-30000 (default 1920). | |
| folder | No | Project folder to put the comp in: id or exact name (default: the project root). | |
| height | No | Pixels, 4-30000 (default 1080). | |
| bgColor | No | Background color, "#rrggbb" or [r,g,b]. | |
| duration | No | Seconds (default 10). | |
| frameRate | No | Frames per second, 1-999 (default 30). | |
| pixelAspect | No | Pixel aspect ratio (default 1, square pixels). |