editor.looks.filter
Sets a picture clip's filter: a preset, and any of its settings over it.
JSON-RPC 2.0project.write
Parameters
- clipstringA clip's id.
- clipsstring[]Several clips, instead of
clip. - presetstringA filter's name; "None" for none.
- brightnessnumber−1 to 1.
- contrastnumber0 to 2.
- saturationnumber0 to 2.
- temperaturenumber−1 to 1.
- vignettenumber0 to 1.
- blurnumber0 to 1.
- canvasstringA canvas's id or name, shown first. Default: the canvas shown.
Result
- filterobjectThe first clip's filter.
Errors
Invalid params (-32602) without a preset or a setting, for a value out of range, an unknown preset, or a sound clip. 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: filter) reaches this method.
Example
{ "jsonrpc": "2.0", "id": 1, "method": "editor.looks.filter", "params": { "clip": "019ad3f6-5e6f-7071-8283-9e0f1a2b3c4d", "preset": "None", "vignette": 0.3 }}lightair call editor.looks.filter '{"clip":"019ad3f6-5e6f-7071-8283-9e0f1a2b3c4d","preset":"None","vignette":0.3}'const result = lightair.call("editor.looks.filter", {"clip":"019ad3f6-5e6f-7071-8283-9e0f1a2b3c4d","preset":"None","vignette":0.3});Result
{ "filter": { "brightness": 0, "contrast": 1, "saturation": 1, "temperature": 0, "vignette": 0.3, "blur": 0 } }