# editor.track.set

Source: https://docs.lightair.app/developers/remote-api/editor.track.set

> Changes a track: its filter and effects on every clip of a video track, its mute, solo, gain and sound effects.

JSON-RPC 2.0 method of Lightair's Remote API (ws://localhost:4455/rpc). Group: Editor. Script plugins need the `project.write` permission.

Picture effects apply to every clip of a video track, after each clip's own. Sound effects apply to each clip's sound. `audio_effects_add` items are `{kind, …settings}`, with the catalog's defaults for the rest.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `track` | `number` | yes | The track's index. |
| `filter` | `string` | no | A filter preset's name; "None" for none. |
| `effects_add` | `string[]` | no | Effect kinds (`fx.*`) to add. |
| `effects_remove` | `string[]` | no | Effect kinds to remove. |
| `muted` | `boolean` | no | Muted. |
| `solo` | `boolean` | no | Solo. |
| `gain_db` | `number` | no | −60 to 12 dB. |
| `audio_effects_add` | `object[]` | no | Sound effects (`audio.*`) to add. |
| `audio_effects_remove` | `string[]` | no | Sound effect kinds to remove. |
| `canvas` | `string` | no | A canvas's id or name, shown first. Default: the canvas shown. |

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `track` | `number` | no | Its index. |
| `effects` | `string[]` | no | Its effect kinds. |
| `filter` | `object` | no | Its filter. |
| `muted` | `boolean` | no | Muted. |
| `solo` | `boolean` | no | Solo. |
| `gain_db` | `number` | no | Its gain. |
| `audio_effects` | `{ kind: string, on: boolean, settings: object }[]` | no | Its sound effects. |

## Errors

Invalid params (-32602) without `track`, or for an unknown filter or effect. Not found (-32004) for a track that isn't there. A state error (-32005) when no Editor project is open, or the open one is read-only because a newer Lightair made it.

## Events

- `editor.changed`

## From an AI agent

The MCP server's `editor_tracks` reaches this method.

## Related

- [editor.looks.catalog](https://docs.lightair.app/developers/remote-api/editor.looks.catalog.md)
- [editor.timeline.get](https://docs.lightair.app/developers/remote-api/editor.timeline.get.md)
