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
| Name | Type | Required | Description |
|---|---|---|---|
bones | string | string[] | no | The bones; the selected ones when left out |
frame | number | no | The frame; the current frame when left out |
keyingSet | string | no | Key what this keying set names instead (the active one is used when no properties are given) |
properties | ("location" | "rotation" | "scale")[] | no | What 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.