Skip to main content
Comprehensive text customization function that allows you to modify typography, appearance, layout, content, and animation. Perfect for creating dynamic text content with complete control over styling.

Examples

Basic text modification

{
  "type": "function",
  "name": "nx:text-params-set",
  "params": {
    "layerName": "Title",
    "textValue": "Hello World!",
    "fontSize": 48,
    "fillColor": "#ffffff"
  }
}

Complete text styling

{
  "type": "function",
  "name": "nx:text-params-set",
  "params": {
    "layerName": "Styled Text",
    "textValue": "Custom Text",
    "font": "Arial Bold",
    "fontSize": 36,
    "fillColor": [1, 1, 1],
    "strokeColor": [0, 0, 0],
    "strokeWidth": 2,
    "applyStroke": true,
    "justification": "center",
    "tracking": 100
  }
}

Text with positioning and expressions

{
  "type": "function",
  "name": "nx:text-params-set",
  "params": {
    "composition": "Main Comp",
    "layerName": "Animated Title",
    "textValue": "Dynamic Text",
    "positionValue": [960, 540],
    "scaleExpression": "wiggle(2, 10)",
    "opacityExpression": "Math.sin(time * 2) * 50 + 50"
  }
}

Parameters

Typography

font
string
Font family name
fontSize
number
Font size in points
tracking
number
Letter spacing/tracking value

Appearance

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

Layout

justification
string
Text alignment: ‘left’, ‘right’, or ‘center’
positionValue
array
[x, y] position coordinates

Content

layerName
string
required
Name of the text layer to modify
textValue
string
The actual text content
textExpression
string
After Effects expression for text

Animation

positionExpression
string
After Effects expression for position
scaleExpression
string
After Effects expression for scale
opacityExpression
string
After Effects expression for opacity

Composition

composition
string
Name/ID of the composition (optional)
I