Apply layer template to clips
apply_layer_templateApplies a layer template to selected clips in a project, fitting layers to each clip and setting its intro/outro; choose replace or add, and optionally re-render finished clips.
Instructions
Write a template onto clips of one project (up to 200 clipIds, or all): its layers fitted to each clip's length, and the intro / outro it sets as each clip's own. Not linked afterwards. mode replace (default) swaps the clips' layers, add keeps them and adds. rerender true re-renders finished clips now, else the next render shows them. update_project settings.layerTemplateId only affects clips created later. Returns { updated, rerendered, skipped: [{ clipId, reason }], layersSkipped, bumpers: slots set }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | "replace" (default) = the template becomes the clip's layers; "add" = its layers join the ones the clip already has | replace |
| clipIds | No | Clip ids of that project (get_project), 1-200; omitted = every clip of the project | |
| rerender | No | true = re-render the affected finished clips now; false = the layers show on their next render | |
| projectId | Yes | Project the clips belong to (list_projects) | |
| templateId | Yes | Layer template id (list_layer_templates) |