transition.set
Changes the workspace's transition, or a scene's own.
JSON-RPC 2.0project.write
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
- scenestringA scene's id or name. Without it, the workspace's.
- kindstringThe kind.
- duration_msnumberIts length, at most 10000.
- directionstring
left,right,upordown. - stinger{ path: string, cut_ms: number } | nullA video file on this computer, and when to cut (at most 60000). null removes it.
- transition_scenestring | nullThe scene a
scenetransition plays. null removes it. - clearbooleanWith
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
Subscribers to events get workspace.changed.
From an AI agent
The MCP server's transitions (action: set) reaches this method.
Example
{ "jsonrpc": "2.0", "id": 1, "method": "transition.set", "params": { "kind": "fade", "duration_ms": 400 }}lightair call transition.set '{"kind":"fade","duration_ms":400}'const result = lightair.call("transition.set", {"kind":"fade","duration_ms":400});Result
{}