add_expression_control
Adds an expression control effect to a layer so you can drive expressions with sliders, points, angles, checkboxes, colors, or layer references.
Instructions
Add an expression control effect to a layer
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"compId": "<compId>",
"layerIndex": "<layerIndex>",
"controlType": "<controlType>",
"name": "<name>"
},
"name": "add_expression_control"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the control | |
| value | No | Initial value for the control | |
| compId | Yes | ID of the composition | |
| layerIndex | Yes | Index of the layer | |
| controlType | Yes | Type of expression control |