# effects.set

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

> Turns on the first effect of a kind with these settings, adding one when there's none.

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

Name one target: `object` or `source` for video effects; `track`, `bus`, `mix` or `master: true` for audio effects. Used for the studio looks (`studio.beauty`, `studio.bg_blur`, `studio.bg_remove`, …), of which a source has one each.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `object` | `string` | no | An object's id or name (its source's effects). |
| `scene` | `string` | no | The object's scene. Default: the scene being edited. |
| `source` | `string` | no | A source's id or name. |
| `track` | `string` | no | A mixer track's id or name (or its source's). |
| `bus` | `string` | no | A bus's id or name. |
| `mix` | `string` | no | A mix's id or name. |
| `master` | `boolean` | no | true for the master. |
| `kind` | `string` | yes | An effect kind. |
| `settings` | `object` | no | Settings merged into its own. |
| `enabled` | `boolean` | no | Default true. |

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `effect` | `string` | no | The effect's id. |
| `added` | `boolean` | no | Whether it was added. |

## Errors

As [effects.add](/developers/remote-api/effects.add).

## Events

- `workspace.changed`

## From an AI agent

The MCP server's `studio_fx (action: set)` reaches this method.

## Related

- [effects.add](https://docs.lightair.app/developers/remote-api/effects.add.md)
- [effects.update](https://docs.lightair.app/developers/remote-api/effects.update.md)
