Create control layer
create_control_layerCreate a Controls null layer with slider, angle, checkbox, color, point, or dropdown expression controls, then link layer properties to them using generated expressions for centralized animation control.
Instructions
Create (or reuse) a null named 'Controls' holding Expression Controls (slider, angle, checkbox, color, point, point3d, layer, dropdown), set their values, and optionally link target properties to them with generated expressions (thisComp.layer("Controls").effect("")(1)). Link modes: replace (value = control; a 1D control fills every dimension, e.g. slider -> uniform Scale), add (value + control), multiply (value * control), toggle (checkbox: value or 0), or a custom 'expression' where {ctrl} is replaced by the control reference. Existing controls with the same name are updated, not duplicated. (To add controls to an arbitrary layer without a null, use the effects module.)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_control_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| name | No | Control layer name (default 'Controls'). An existing layer with this name is reused. | |
| label | No | Label color index for a newly created null. | |
| links | No | Properties to drive from the controls via expressions. | |
| reuse | No | Reuse an existing layer with that name (default true); false always creates a new null. | |
| controls | No | Controls to add (or update) on the layer. |