Skip to content
Changelog

editor.zooms.add

Adds a zoom over pictures, following the pointer or on a fixed point.

JSON-RPC 2.0project.write

A zoom lasts at least 0.2 seconds, goes over videos, pictures or takes, and never over another zoom.

Parameters

  • start_msnumberWhere it starts. Default: the playhead.
  • end_msnumberWhere it ends. Default: 3 seconds on.
  • scalenumber1 to 8. Default 2.
  • followbooleanFollow the pointer.
  • xnumberA fixed point across, 0 to 1.
  • ynumberA fixed point down, 0 to 1.
  • canvasstringA canvas's id or name, shown first. Default: the canvas shown.

Result

  • (the zoom){ zoom: number, start_ms: number, end_ms: number, scale: number, focus: "pointer" | { x: number, y: number }, auto: boolean }The zoom.

Errors

Invalid params (-32602) for a zoom too short or a value out of range. A state error (-32005) with no picture there, or another zoom there. 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_zooms (action: add) reaches this method.

Example

ws://localhost:4455/rpc
{
"jsonrpc": "2.0",
"id": 1,
"method": "editor.zooms.add",
"params": {
"start_ms": 8000,
"scale": 2.5,
"follow": true
}
}

Result

{ "zoom": 1, "start_ms": 8000, "end_ms": 11000, "scale": 2.5, "focus": "pointer", "auto": false }

editor.zooms.set · editor.zooms.list