add_shape_path
Adds a custom vector path to an After Effects shape layer using vertices and tangents, with optional fill, stroke, and group settings.
Instructions
Add a path to a shape 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>",
"path": "<path>"
},
"name": "add_shape_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| compId | Yes | ID of the composition | |
| fillColor | No | Fill color [R, G, B] or [R, G, B, A] (0-1) | |
| groupName | No | Name of the shape group (optional) | |
| layerIndex | Yes | Index of the shape layer | |
| strokeColor | No | Stroke color [R, G, B] or [R, G, B, A] (0-1) | |
| strokeWidth | No | Stroke width in pixels |