---
title: "effect.moveKeyframe: Move Keyframe — Film kit command — Kition"
description: "Moves the keyframe of an effect parameter at `mediaTime` to media time `to` (both clip media ticks), with a new `value` when given. `mask` targets a mask's parameter. `merge: true` makes a drag of the keyframe (each call naming where the last one left it) one undo step; `begin` starts a new one."
canonical: "https://developer.kition.ai/docs/kits/film/commands/effect.moveKeyframe"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/film/commands/effect.moveKeyframe](https://developer.kition.ai/docs/kits/film/commands/effect.moveKeyframe)

# effect.moveKeyframe

**Move Keyframe.** Moves the keyframe of an effect parameter at `mediaTime` to media time `to` (both clip media ticks), with a new `value` when given. `mask` targets a mask's parameter. `merge: true` makes a drag of the keyframe (each call naming where the last one left it) one undo step; `begin` starts a new one.

- Kit: Film 0.1.0 (.kfilm); reference: [Film kit commands](https://developer.kition.ai/docs/kits/film.md)
- Changes the document: yes
- Acts on: `clip` (one id), which a run step’s `on` fills

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `begin` | `boolean` | no |  |
| `clip` | `integer` | no |  |
| `effect` | `string` | no | str\|index |
| `inInfluence` | `number` | no | read by the command beside its listed parameters |
| `interpolation` | `string` | no | read by the command beside its listed parameters |
| `mask` | `integer` | no |  |
| `mediaTime` | `integer` | no | ticks (254016000000 per second) |
| `merge` | `boolean` | no |  |
| `outInfluence` | `number` | no | read by the command beside its listed parameters |
| `param` | `string` | no |  |
| `to` | `integer` | no | ticks (254016000000 per second) |
| `value` | `any` | no |  |

## Call through film_run

```text
film_run {
  "path": "<file>.kfilm",
  "steps": [{ "command": "effect.moveKeyframe" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `begin`, `clip`, `effect`, `inInfluence`, `interpolation`, `mask`, `mediaTime`, `merge`, `outInfluence`, `param`, `to`, `value`. film_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": {
    "begin": {
      "type": "boolean"
    },
    "clip": {
      "type": "integer",
      "x-khp-types": [
        "Clip"
      ]
    },
    "effect": {
      "description": "str|index",
      "type": "string"
    },
    "inInfluence": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    },
    "interpolation": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    },
    "mask": {
      "type": "integer"
    },
    "mediaTime": {
      "description": "ticks (254016000000 per second)",
      "type": "integer"
    },
    "merge": {
      "type": "boolean"
    },
    "outInfluence": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    },
    "param": {
      "type": "string"
    },
    "to": {
      "description": "ticks (254016000000 per second)",
      "type": "integer"
    },
    "value": {}
  },
  "type": "object"
}
```

Generated from the command list of @kition/film-darwin-arm64@0.1.0 and the kit itself (film_commands through @kition/cli@0.1.1, built from KitionAI/kition-film@375db59).
