Skip to content
Changelog

editor.adjustment.add

Adds an adjustment layer: its looks, masks, blend, grade and opacity apply to everything under it.

JSON-RPC 2.0project.write

Set its looks with editor.clip.set, editor.clip.key and the editor.looks.* methods.

Parameters

  • at_msnumberA moment on the canvas's timeline. Default: the playhead.
  • duration_msnumberIts length, at least 100. Default 5000.
  • canvasstringA canvas's id or name, shown first. Default: the canvas shown.

Result

  • (the clip){ id: string, name: string, track: number, start_ms: number, end_ms: number, in_ms: number, out_ms: number, speed: number, volume: number, muted: boolean, media: string | null, text: string | null }The clip as editor.timeline.get lists it.

Errors

A state error (-32005) when it can't be placed. A state error (-32005) when no Editor project is open, or the open one is read-only because a newer Lightair made it.

Events

Subscribers to events get editor.changed.

From an AI agent

The MCP server's editor_clip (action: adjustment) reaches this method.

Example

ws://localhost:4455/rpc
{
"jsonrpc": "2.0",
"id": 1,
"method": "editor.adjustment.add",
"params": {}
}

editor.looks.filter · editor.clip.set