---
title: "keyframe.interpolation: Keyframe Interpolation — Motion kit command — Kition"
description: "Sets the selected keyframes' interpolation: `interpolation` (linear, bezier, continuousBezier, autoBezier, hold) or `in`/`out` per side, `spatial` for paths, and roving. Changes how values move between keys, not the key values."
canonical: "https://developer.kition.ai/docs/kits/motion/commands/keyframe.interpolation"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/motion/commands/keyframe.interpolation](https://developer.kition.ai/docs/kits/motion/commands/keyframe.interpolation)

# keyframe.interpolation

**Keyframe Interpolation.** Sets the selected keyframes' interpolation: `interpolation` (linear, bezier, continuousBezier, autoBezier, hold) or `in`/`out` per side, `spatial` for paths, and roving. Changes how values move between keys, not the key values.

- Kit: Motion 0.1.0 (.kmotion); reference: [Motion kit commands](https://developer.kition.ai/docs/kits/motion.md)
- Changes the document: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `autoBezier` | `boolean` | no |  |
| `continuous` | `boolean` | no |  |
| `in` | `"linear" \| "bezier" \| "hold"` | no |  |
| `interpolation` | `"linear" \| "bezier" \| "continuousBezier" \| "autoBezier" \| "hold"` | no |  |
| `out` | `"linear" \| "bezier" \| "hold"` | no |  |
| `roving` | `boolean` | no |  |
| `spatial` | `"linear" \| "bezier" \| "continuousBezier" \| "autoBezier"` | no |  |

## Call through motion_run

```text
motion_run {
  "path": "<file>.kmotion",
  "steps": [{ "command": "keyframe.interpolation" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `autoBezier`, `continuous`, `in`, `interpolation`, `out`, `roving`, `spatial`. motion_run answers the step’s result in `completed[i].result`.

## Result

The kit gives no result schema for this command.

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "autoBezier": {
      "type": "boolean"
    },
    "continuous": {
      "type": "boolean"
    },
    "in": {
      "enum": [
        "linear",
        "bezier",
        "hold"
      ],
      "type": "string"
    },
    "interpolation": {
      "enum": [
        "linear",
        "bezier",
        "continuousBezier",
        "autoBezier",
        "hold"
      ],
      "type": "string"
    },
    "out": {
      "enum": [
        "linear",
        "bezier",
        "hold"
      ],
      "type": "string"
    },
    "roving": {
      "type": "boolean"
    },
    "spatial": {
      "enum": [
        "linear",
        "bezier",
        "continuousBezier",
        "autoBezier"
      ],
      "type": "string"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/motion-darwin-arm64@0.1.0 and the kit itself (motion_commands through @kition/cli@0.1.1, built from KitionAI/kition-motion@4719aa7).
