Scene kit command

pose.insertKey

Insert Keyframe

Inserts keyframes for pose bones `bones` at `frame`.

Kit
Scene 0.1.0 (.kscene)
Changes the document
yes

Parameters

Parameters of pose.insertKey
NameTypeRequiredDescription
bonesstring | string[]noThe bones; the selected ones when left out
framenumbernoThe frame; the current frame when left out
keyingSetstringnoKey what this keying set names instead (the active one is used when no properties are given)
properties("location" | "rotation" | "scale")[]noWhat to key (all three when left out)

Call through scene_run

text
scene_run {
  "path": "<file>.kscene",
  "steps": [{ "command": "pose.insertKey" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: bones, frame, keyingSet, properties. scene_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": {
    "bones": {
      "description": "The bones; the selected ones when left out",
      "oneOf": [
        {
          "description": "a bone's name",
          "type": "string"
        },
        {
          "description": "bones' names",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      ]
    },
    "frame": {
      "description": "The frame; the current frame when left out",
      "type": "number"
    },
    "keyingSet": {
      "description": "Key what this keying set names instead (the active one is used when no properties are given)",
      "type": "string"
    },
    "properties": {
      "description": "What to key (all three when left out)",
      "items": {
        "enum": [
          "location",
          "rotation",
          "scale"
        ],
        "type": "string"
      },
      "type": "array"
    }
  },
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (scene_commands through @kition/[email protected], built from KitionAI/kition-scene@4d06faf). As data: commands.jsonl.