# editor.looks.effect.add

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

> Adds a picture effect to a clip.

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

`settings` is `{key: value}`: numbers within the setting's range, switches true or false, choices by name, colours "#RRGGBB".

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `clip` | `string` | yes | The clip's id, from editor.timeline.get. |
| `kind` | `string` | yes | A catalog kind (`fx.*`) or its name. |
| `settings` | `object` | no | Its settings. |
| `on` | `boolean` | no | On or off. Default on. |
| `canvas` | `string` | no | A canvas's id or name, shown first. Default: the canvas shown. |

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `(the effect)` | `{ id: string, kind: string, name: string, on: boolean, settings: object }` | no | The effect. |

## Errors

Invalid params (-32602) for an unknown kind or setting, a value that doesn't fit, 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: effect_add)` reaches this method.

## Related

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