Motion kit command

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)
Changes the document
yes

Parameters

Parameters of keyframe.transform
NameTypeRequiredDescription
dimany[]noone of several alternative parameters
dimsany[]noone of several alternative parameters
fromStartbooleannowith merge: values are the whole transform since the drag started
mergestringno
timeAnchornumbernocomp s
timeOffsetnumbernos
timeScalenumberno
valueAnchornumberno
valueOffsetnumberno
valueScalenumberno

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/[email protected] and the kit itself (motion_commands through @kition/[email protected], built from KitionAI/kition-motion@4719aa7). As data: commands.jsonl.