Skip to main content
Changes the color of solid layers in your composition. You can pass the color as a hex string or an RGB array.

Examples

Using RGB array (0-1 range)

Using RGB array (0-255 range)

Using hex color

Targeting specific composition

Parameters

string | string[]
required
Name of the solid layer. Pass an array of names to change several layers.
array | string
required
Color in multiple formats:
  • RGB arrays of exactly three numbers: [1,1,1] (0-1 range) or [255,255,255] (0-255 range). If any value is above 1, all three are read as 0-255.
  • Hex strings: #ffffff or #fff
string
default:"null"
Name of the composition (optional). Without it, solid layers with this name in every composition of the project are changed.