Set shape path vertices
set_shape_pathReplaces the vertices of a free-form shape path to redraw or morph it, optionally setting keyframes for animation.
Instructions
Replace the vertices of a free-form path in a shape group (the first Path item in groupPath, or pathName). With 'time' it sets a keyframe (call twice with different times to animate/morph); if the path is already animated it keys at the comp's current time.
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": {
"layer": "<layer>",
"vertices": "<vertices>"
},
"name": "set_shape_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| time | No | Set a keyframe at this time instead of a static value. | |
| layer | Yes | Layer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer. | |
| closed | No | Closed path (default true). | |
| pathName | No | Path item name or index inside the group (default: first Path). | |
| vertices | Yes | New points [[x,y],...] relative to the group origin. | |
| groupPath | No | Group containing the path (e.g. 'Path' or 'Logo/Path 1'). | |
| inTangents | No | Incoming bezier handles per vertex, RELATIVE to each vertex. Default all [0,0] (straight lines). | |
| outTangents | No | Outgoing bezier handles per vertex, relative to each vertex. Default all [0,0]. |