Set / convert text box
set_text_boxResize paragraph text boxes, adjust vertical alignment or auto-fit height, and convert point text to paragraph text—or back—by recreating the layer when After Effects cannot convert in place.
Instructions
Resize a paragraph text box (boxSize, boxPosition = top-left in layer space), set vertical alignment / auto-fit (AE 24.6+), or convert point text <-> paragraph text (mode). AE cannot convert in place, so conversion re-creates the layer and copies style, transform, masks, effects, path/more options and animators (Source Text keyframes are not copied); the new layer replaces the old one (keepOriginal keeps it hidden).
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_box"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| mode | No | Target type (default: box if boxSize is given, else the current type). | |
| layer | Yes | Text layer: 1-based index, name, or {id}. | |
| autoFit | No | Box auto-fit height policy. | |
| boxSize | No | [width, height] in px. | |
| boxPosition | No | Top-left of the box in layer space. | |
| insetSpacing | No | Inner padding of the box (px). | |
| keepOriginal | No | On conversion, keep the original layer (disabled) instead of deleting it. | |
| verticalAlignment | No |