Motion kit command

keyframe.smooth

Smoother

Smoother: removes keyframes from the selected run (three or more keys on a property) where the curve stays within `tolerance` of the original (property units, default 1), simplifying hand-drawn or tracked motion.

Kit
Motion 0.1.0 (.kmotion)
Changes the document
yes

Parameters

Parameters of keyframe.smooth
NameTypeRequiredDescription
tolerancenumbernoproperty units, 1

Call through motion_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: tolerance. 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": {
    "tolerance": {
      "description": "property units, 1",
      "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.