Set text style
set_text_styleChange font, size, colors, stroke, tracking, leading, and other style fields on one or more text layers, or on a specific character range or keyframe time.
Instructions
Change style fields (font, size, colors, stroke, tracking, leading, justification, caps, faux bold/italic, indents...) on one or more text layers. Optional 'range' {start, end} styles only those characters (0-based, end exclusive; needs AE 24.3+). If Source Text is keyframed, every keyframe is updated unless 'time' targets one keyframe.
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": {
"style": "<style>"
},
"name": "set_text_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| time | No | Optional: write the style into a Source Text keyframe at this time. | |
| layer | No | Single text layer (alternative to 'layers'). | |
| range | No | Style only this character range (AE 24.3+). | |
| style | Yes | Text style. Only the fields you pass are changed. | |
| layers | No | Text layers to change: array of refs, or 'selected' / 'all' (all must be text layers). |