Skip to content
Changelog

editor.compose.mask.remove

Removes a mask from a clip, with its keys.

JSON-RPC 2.0project.write

Parameters

  • clipstringrequiredThe clip's id, from editor.timeline.get.
  • masknumber | stringrequiredIts number from 1, or its id.
  • canvasstringA canvas's id or name, shown first. Default: the canvas shown.

Result

  • masks{ mask: number, id: string, shape: string, x: number, y: number, w: number, h: number, rotation: number, feather: number, opacity: number, invert: boolean, mode: string, radius?: number, points?: [number, number][] }[]The clip's masks, numbered from 1.

Errors

Not found (-32004) when the clip has no such mask. 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_compose (action: mask_remove) reaches this method.

Example

ws://localhost:4455/rpc
{
"jsonrpc": "2.0",
"id": 1,
"method": "editor.compose.mask.remove",
"params": {}
}

editor.compose.mask.add