Put text on a path
set_text_pathMakes a text layer follow an existing or newly created mask path in After Effects, including circle, ellipse, arc, line, or custom shapes; detach with remove.
Instructions
Make text follow a mask path of the same layer (Path Options). Either use an existing mask ('mask' index/name), or create one with 'shape': circle (radius, center), ellipse (size [w,h]), arc (radius, startAngle/endAngle in degrees, 0 = 12 o'clock, clockwise; text sits on top of the arc), line (points [[x,y],[x,y]]) or custom (points + tangents). Coordinates are in layer space; center defaults to the anchor point. Created masks use mode None so they don't cut the text. remove=true detaches the path.
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>"
},
"name": "set_text_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| mask | No | Existing mask index (1-based) or name. Default: last mask. | |
| size | No | ellipse [width, height]. | |
| layer | Yes | Text layer: 1-based index, name, or {id}. | |
| shape | No | Create a new mask of this shape. | |
| center | No | Circle/ellipse center (arc: center of the arc's top) in layer space. Default: anchor point. | |
| closed | No | custom: closed path. | |
| points | No | line/custom vertices in layer space. | |
| radius | No | circle/arc radius in px. | |
| remove | No | Detach text from any path (Path = None). | |
| reverse | No | Reverse path. | |
| endAngle | No | arc end angle (default 60). | |
| maskName | No | Name for the created mask. | |
| inTangents | No | custom: in tangents. | |
| lastMargin | No | Offset of the text end (px). | |
| startAngle | No | Degrees, 0 = top, clockwise. circle/ellipse start point (default 270 = left); arc start (default -60). | |
| firstMargin | No | Offset of the text start along the path (px). | |
| outTangents | No | custom: out tangents. | |
| maskModeNone | No | Set an existing mask's mode to None (default true). | |
| perpendicular | No | Characters perpendicular to the path (default true). | |
| forceAlignment | No | Spread text between first and last margin. |