set_layer_block
Set (or replace) a layer's timeline BLOCK — the [start, start+duration) window it exists for. The layer is drawn ONLY inside that window, and its animation keyframes are sampled RELATIVE to the block start, so moving or trimming the block re-anchors its intro instead of leaving it behind. This is how a layer 'starts' at a point like an iMovie clip rather than being present for the whole composition. Works on any leaf or group. Frames are in the layer's parent timeline (composition frames at root; band-local inside an embedded morpha band). To place a whole embedded reel, use move_band.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start | Yes | First frame the layer appears (0-indexed, 30 fps), in its parent timeline. | |
| duration | Yes | How many frames the layer lasts (≥ 1). Hidden outside [start, start+duration). | |
| elementId | Yes | Element id of the layer (image.<id>, video.<id>, text.<id>, shapes.<id>, or group.<id>). | |
| projectId | Yes | Opaque project id (a v4 UUID, from list_projects/create_project). Selects which existing project this call mutates. |