Skip to main content

Documentation Index

Fetch the complete documentation index at: https://nexrender.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Changes the color of solid color layers in your composition. Supports multiple color formats for flexibility in how you specify colors.

Examples

Using RGB array (0-1 range)

{
  "type": "function",
  "name": "nx:solid-color-set",
  "params": {
    "layerName": "Background Solid",
    "color": [1, 0.5, 0.2]
  }
}

Using RGB array (0-255 range)

{
  "type": "function",
  "name": "nx:solid-color-set",
  "params": {
    "layerName": "Background Solid",
    "color": [255, 128, 51]
  }
}

Using hex color

{
  "type": "function",
  "name": "nx:solid-color-set",
  "params": {
    "layerName": "Background Solid",
    "color": "#ff8033"
  }
}

Targeting specific composition

{
  "type": "function",
  "name": "nx:solid-color-set",
  "params": {
    "composition": "Precomp_1",
    "layerName": "Background Solid",
    "color": "#ff8033"
  }
}

Parameters

layerName
string
required
Name of the solid color layer
color
array | string
required
Color in multiple formats:
  • RGB arrays: [1,1,1] (0-1 range) or [255,255,255] (0-255 range)
  • Hex strings: #ffffff
composition
string
default:"null"
Name/ID of the composition (optional)