> ## Documentation Index
> Fetch the complete documentation index at: https://www.nexrender.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# nx:solid-color-set

> Sets the color of a solid color layer

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)

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

### Using RGB array (0-255 range)

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

### Using hex color

```json theme={null}
{
  "type": "function",
  "name": "nx:solid-color-set",
  "params": {
    "layerName": "Background Solid",
    "color": "#ff8033"
  }
}
```

### Targeting specific composition

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

## Parameters

<ParamField path="layerName" type="string" required>
  Name of the solid color layer
</ParamField>

<ParamField path="color" type="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`
</ParamField>

<ParamField path="composition" type="string" default="null">
  Name/ID of the composition (optional)
</ParamField>
