---
title: "keyframe.transform: Transform Keyframes — Motion kit command — Kition"
description: "Transform the selected keys: times scale about `timeAnchor` (comp seconds, default the first selected key) by `timeScale` and move by `timeOffset`; values scale about `valueAnchor` by `valueScale` and move by `valueOffset` (every dimension, or only `dim`). Times land on frames."
canonical: "https://developer.kition.ai/docs/kits/motion/commands/keyframe.transform"
---

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

# keyframe.transform

**Transform Keyframes.** Transform the selected keys: times scale about `timeAnchor` (comp seconds, default the first selected key) by `timeScale` and move by `timeOffset`; values scale about `valueAnchor` by `valueScale` and move by `valueOffset` (every dimension, or only `dim`). Times land on frames.

- 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 |
| --- | --- | --- | --- |
| `dim` | `any[]` | no | one of several alternative parameters |
| `dims` | `any[]` | no | one of several alternative parameters |
| `fromStart` | `boolean` | no | with merge: values are the whole transform since the drag started |
| `merge` | `string` | no |  |
| `timeAnchor` | `number` | no | comp s |
| `timeOffset` | `number` | no | s |
| `timeScale` | `number` | no |  |
| `valueAnchor` | `number` | no |  |
| `valueOffset` | `number` | no |  |
| `valueScale` | `number` | no |  |

## Call through motion_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `dim`, `dims`, `fromStart`, `merge`, `timeAnchor`, `timeOffset`, `timeScale`, `valueAnchor`, `valueOffset`, `valueScale`. 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": {
    "dim": {
      "description": "one of several alternative parameters",
      "type": "array"
    },
    "dims": {
      "description": "one of several alternative parameters",
      "type": "array"
    },
    "fromStart": {
      "description": "with merge: values are the whole transform since the drag started",
      "type": "boolean"
    },
    "merge": {
      "type": "string"
    },
    "timeAnchor": {
      "description": "comp s",
      "type": "number"
    },
    "timeOffset": {
      "description": "s",
      "type": "number"
    },
    "timeScale": {
      "type": "number"
    },
    "valueAnchor": {
      "type": "number"
    },
    "valueOffset": {
      "type": "number"
    },
    "valueScale": {
      "type": "number"
    }
  },
  "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).
