# editor.looks.transition

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

> Sets the transition at the cut before a clip, or at every cut on the picture tracks.

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` | yes | The clip's id, from editor.timeline.get. |
| `kind` | `string` | yes | A transition's name, or `none`. |
| `duration_ms` | `number` | no | Its length, at least 100, no longer than either side of the cut. Default 500. |
| `every` | `boolean` | no | Every cut on the picture tracks. |
| `canvas` | `string` | no | A canvas's id or name, shown first. Default: the canvas shown. |

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `cuts` | `number` | no | How many cuts were set. |

## Errors

Invalid params (-32602) for an unknown transition or a sound clip. A state error (-32005) when no clip comes right before it on its track. 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: transition)` reaches this method.

## Example

```json
{ "jsonrpc": "2.0", "id": 1, "method": "editor.looks.transition", "params": { "clip": "019ad3f6-5e6f-7071-8283-9e0f1a2b3c4d", "kind": "Crossfade", "every": true } }
```

Result:

```json
{ "cuts": 6 }
```

## Related

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