Skip to main content
Changes the typography, colors, content, position, and transform expressions of a text layer. Set only the parameters you want to change. The rest of the layer stays as it is.

Examples

Basic text modification

Complete text styling

Text with positioning and expressions

Parameters

This function has no composition parameter. It changes text layers named layerName in every composition of the project. The API rejects parameters that are not listed on this page.
Values of 0, false, or an empty string are skipped, so they leave the layer as it is. For example, "applyFill": false does not turn the fill off, and "tracking": 0 does not reset tracking.

Typography

string
PostScript name of the font, for example Arial-Black
number
Font size in points
number
Letter spacing/tracking value

Appearance

array | string
Fill color in multiple formats:
  • RGB arrays of exactly three numbers: [1,1,1] (0-1 range) or [255,255,255] (0-255 range)
  • Hex strings: #ffffff or #fff
array | string
Stroke color in multiple formats:
  • RGB arrays of exactly three numbers: [1,1,1] (0-1 range) or [255,255,255] (0-255 range)
  • Hex strings: #ffffff or #fff
number
Width of the text stroke
boolean
Whether stroke appears over fill
boolean
Whether to apply stroke to text
boolean
Whether to apply fill to text

Layout

string
Text alignment: left, right, or center. Other values are rejected.
array
[x, y] position coordinates, as exactly two numbers

Content

string | string[]
required
Name of the text layer to modify. Pass an array of names to change several layers.
string
The actual text content
string
After Effects expression for text

Animation

string
After Effects expression for position
string
After Effects expression for scale
string
After Effects expression for opacity