set_path
Writes mask or shape path geometry by setting vertices, optional tangents, and closed state; keyframes the path at a specified time or frame, otherwise applies it statically.
Instructions
Write a mask or shape path's geometry. Same target selector as get_path (mask / shapePath / shapeIndex). vertices is required (array of [x,y] in layer space). inTangents/outTangents are optional (each [x,y] relative to its vertex) and default to zero — straight corners — and must match the vertex count when given. closed defaults true. With time/frame the path is keyframed at that time; otherwise it is set statically (or keyed at the current time if the path is already keyframed). Returns a read-back {kind,mode,vertices,closed,numKeys}.
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_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Comp: name, numeric id, or { id: N } for duplicate-name-safe stable-id addressing. | |
| mask | No | Mask target: mask name or 1-based index. | |
| time | No | seconds — keyframe the path here | |
| frame | No | frame — keyframe the path here | |
| layer | Yes | Layer: name (string), 1-based index (integer), or { id: N } for duplicate-name-safe stable-id addressing. | |
| closed | No | default true | |
| instance | No | Target a specific AE when more than one is connected (e.g. "2026", "2025", or a major like "26"). Omit when only one AE is open — see list_instances. | |
| vertices | Yes | Array of [x,y] vertex pairs (layer space). | |
| shapePath | No | Shape target: dotted display path or ADBE matchName. | |
| inTangents | No | Optional [x,y] in-tangents relative to each vertex; defaults to zeros. | |
| shapeIndex | No | Shape target: 1-based group index in Contents. | |
| outTangents | No | Optional [x,y] out-tangents relative to each vertex; defaults to zeros. |