# editor.looks.filter

Source: https://docs.lightair.app/developers/remote-api/editor.looks.filter

> Sets a picture clip's filter: a preset, and any of its settings over it.

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

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `clip` | `string` | no | A clip's id. |
| `clips` | `string[]` | no | Several clips, instead of `clip`. |
| `preset` | `string` | no | A filter's name; "None" for none. |
| `brightness` | `number` | no | −1 to 1. |
| `contrast` | `number` | no | 0 to 2. |
| `saturation` | `number` | no | 0 to 2. |
| `temperature` | `number` | no | −1 to 1. |
| `vignette` | `number` | no | 0 to 1. |
| `blur` | `number` | no | 0 to 1. |
| `canvas` | `string` | no | A canvas's id or name, shown first. Default: the canvas shown. |

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `filter` | `object` | no | The first clip's filter. |

## Errors

Invalid params (-32602) without a preset or a setting, for a value out of range, an unknown preset, or a sound clip. A state error (-32005) when no Editor project is open, or the open one is read-only because a newer Lightair made it. Invalid params (-32602) for a clip id that can't be read; not found (-32004) for a clip that isn't on the canvas.

## Events

- `editor.changed`

## From an AI agent

The MCP server's `editor_looks (action: filter)` reaches this method.

## Example

```json
{ "jsonrpc": "2.0", "id": 1, "method": "editor.looks.filter", "params": { "clip": "019ad3f6-5e6f-7071-8283-9e0f1a2b3c4d", "preset": "None", "vignette": 0.3 } }
```

Result:

```json
{ "filter": { "brightness": 0, "contrast": 1, "saturation": 1, "temperature": 0, "vignette": 0.3, "blur": 0 } }
```

## Related

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