Set Text
set_textModify text content, font, size, color, or range styling on an After Effects text layer; only passed fields change, and results return updated values.
Instructions
Set text and styling on a whole text layer; only the fields you pass change, read back in the result (skipped: what After Effects refused). font: PostScript name (find_fonts). leading turns auto leading off; stroke_color turns the stroke on; horizontal/vertical_scale in percent. box_size resizes box text (point text cannot become box text: add_layer options.box_size). time sets a keyframe. ranges style part of the text after the whole-layer fields (AE 24.3+): match (every occurrence of a string) or start/end (character indexes from 0, end exclusive, default the end). New text clears earlier part styling (ranges_cleared): pass ranges in the same call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fill | No | ||
| font | No | ||
| size | No | ||
| text | No | ||
| time | No | ||
| color | No | ||
| tsume | No | ||
| ranges | No | ||
| stroke | No | ||
| leading | No | ||
| all_caps | No | ||
| box_size | No | ||
| layer_id | Yes | ||
| tracking | No | ||
| faux_bold | No | ||
| ligatures | No | ||
| subscript | No | ||
| small_caps | No | ||
| faux_italic | No | ||
| left_indent | No | ||
| space_after | No | ||
| superscript | No | ||
| auto_leading | No | ||
| right_indent | No | ||
| space_before | No | ||
| stroke_color | No | ||
| stroke_width | No | ||
| justification | No | ||
| baseline_shift | No | ||
| vertical_scale | No | ||
| horizontal_scale | No | ||
| stroke_over_fill | No | ||
| first_line_indent | No |