Motion kit command

keyframe.info

Keyframe Info

Returns details of the selected keyframes, or `keys` [{layer, prop, time}]: value, interpolation in and out, ease speed and influence per side and dimension, spatial tangents and roving, with units.

Kit
Motion 0.1.0 (.kmotion)
Changes the document
no

Parameters

Parameters of keyframe.info
NameTypeRequiredDescription
keysobject[]no[{layer, prop, time}]

Call through motion_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: keys. motion_run answers the step’s result in completed[i].result.

Result

Result JSON Schema
json
{
  "items": {},
  "type": "array"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "keys": {
      "description": "[{layer, prop, time}]",
      "items": {
        "additionalProperties": true,
        "properties": {
          "layer": {
            "oneOf": [
              {
                "description": "layer id as motion_inspect lists it (when no layer has that id, its 1-based stack position)",
                "type": "integer"
              },
              {
                "description": "layer id as receipts print it (\"51\"), a layer name, or #n for the n-th from the top",
                "type": "string"
              }
            ],
            "x-khp-name": "name",
            "x-khp-role": "object",
            "x-khp-types": [
              "Layer"
            ]
          },
          "prop": {},
          "time": {
            "type": "number"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "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.