editor.looks.transition
Sets the transition at the cut before a clip, or at every cut on the picture tracks.
JSON-RPC 2.0project.write
Parameters
- clipstringrequiredThe clip's id, from editor.timeline.get.
- kindstringrequiredA transition's name, or
none. - duration_msnumberIts length, at least 100, no longer than either side of the cut. Default 500.
- everybooleanEvery cut on the picture tracks.
- canvasstringA canvas's id or name, shown first. Default: the canvas shown.
Result
- cutsnumberHow 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
Subscribers to events get editor.changed.
From an AI agent
The MCP server's editor_looks (action: transition) reaches this method.
Example
{ "jsonrpc": "2.0", "id": 1, "method": "editor.looks.transition", "params": { "clip": "019ad3f6-5e6f-7071-8283-9e0f1a2b3c4d", "kind": "Crossfade", "every": true }}lightair call editor.looks.transition '{"clip":"019ad3f6-5e6f-7071-8283-9e0f1a2b3c4d","kind":"Crossfade","every":true}'const result = lightair.call("editor.looks.transition", {"clip":"019ad3f6-5e6f-7071-8283-9e0f1a2b3c4d","kind":"Crossfade","every":true});Result
{ "cuts": 6 }