# transition.set

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

> Changes the workspace's transition, or a scene's own.

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

Kinds: `cut`, `fade`, `move`, `slide`, `wipe`, `dip`, `stinger`, `scene`. A stinger needs a stinger video and a `scene` transition needs a scene to play, either given here or already set.

Without `scene`, the workspace's transition changes. With `scene`, that scene's own; `clear: true` takes the scene's own away.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `scene` | `string` | no | A scene's id or name. Without it, the workspace's. |
| `kind` | `string` | no | The kind. |
| `duration_ms` | `number` | no | Its length, at most 10000. |
| `direction` | `string` | no | `left`, `right`, `up` or `down`. |
| `stinger` | `{ path: string, cut_ms: number } | null` | no | A video file on this computer, and when to cut (at most 60000). null removes it. |
| `transition_scene` | `string | null` | no | The scene a `scene` transition plays. null removes it. |
| `clear` | `boolean` | no | With `scene`: remove the scene's own transition. |

## Errors

Invalid params (-32602) for an unknown kind or direction, a stinger file that isn't there, a stinger without a video, a scene transition without a scene, or `clear` without `scene`. Not found (-32004) for an unknown scene.

## Events

- `workspace.changed`

## From an AI agent

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

## Example

```json
{ "jsonrpc": "2.0", "id": 1, "method": "transition.set", "params": { "kind": "fade", "duration_ms": 400 } }
```

Result:

```json
{}
```

## Related

- [transition.get](https://docs.lightair.app/developers/remote-api/transition.get.md)
- [staging.take](https://docs.lightair.app/developers/remote-api/staging.take.md)
