# editor.looks.animation

Source: https://docs.lightair.app/developers/remote-api/editor.looks.animation

> Sets a clip's in, out or combo animation.

JSON-RPC 2.0 method of Lightair's Remote API (ws://localhost:4455/rpc). Group: Editor. Script plugins need the `project.write` permission.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `clip` | `string` | yes | The clip's id, from editor.timeline.get. |
| `slot` | `string` | yes | `in`, `out` or `combo`. |
| `kind` | `string` | yes | An animation's name, or `none`. |
| `duration_ms` | `number` | no | 100 to 20000. Default 500; a combo's 2000. |
| `canvas` | `string` | no | A canvas's id or name, shown first. Default: the canvas shown. |

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `motion` | `{ in: object | null, out: object | null, combo: object | null }` | no | 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

- `editor.changed`

## From an AI agent

The MCP server's `editor_looks (action: animation)` reaches this method.

## Related

- [editor.looks.catalog](https://docs.lightair.app/developers/remote-api/editor.looks.catalog.md)
- [editor.looks.transition](https://docs.lightair.app/developers/remote-api/editor.looks.transition.md)
