editor.looks.animation
Sets a clip's in, out or combo animation.
JSON-RPC 2.0project.write
Parameters
- clipstringrequiredThe clip's id, from editor.timeline.get.
- slotstringrequired
in,outorcombo. - kindstringrequiredAn animation's name, or
none. - duration_msnumber100 to 20000. Default 500; a combo's 2000.
- canvasstringA canvas's id or name, shown first. Default: the canvas shown.
Result
- motion{ in: object | null, out: object | null, combo: object | null }The clip's animations.
Errors
Invalid params (-32602) for an unknown slot or animation, 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: animation) reaches this method.
Example
{ "jsonrpc": "2.0", "id": 1, "method": "editor.looks.animation", "params": {}}lightair call editor.looks.animationconst result = lightair.call("editor.looks.animation", {});