Scene kit command
bone.add
Add Bone
Adds a bone with head and tail to the armature in edit mode, optionally parented and connected.
- Kit
- Scene 0.1.0 (.kscene)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
connected | boolean | no | The head sits on the parent's tail |
head | number[] | no | Where it starts, in the armature's space (the origin) [x, y, z] |
name | string | no | The bone's name (Bone) |
parent | string | no | The parent bone |
tail | number[] | no | Where it ends (a metre above the head) [x, y, z] |
Call through scene_run
text
scene_run {
"path": "<file>.kscene",
"steps": [{ "command": "bone.add" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: connected, head, name, parent, tail. 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": {
"connected": {
"description": "The head sits on the parent's tail",
"type": "boolean"
},
"head": {
"description": "Where it starts, in the armature's space (the origin) [x, y, z]",
"items": {
"type": "number"
},
"type": "array"
},
"name": {
"description": "The bone's name (Bone)",
"type": "string"
},
"parent": {
"description": "The parent bone",
"type": "string"
},
"tail": {
"description": "Where it ends (a metre above the head) [x, y, z]",
"items": {
"type": "number"
},
"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.