Scene kit command

pose.set

Pose Bones

Sets location, rotation and/or scale of pose bones `bones`.

Kit
Scene 0.1.0 (.kscene)
Changes the document
yes

Parameters

Parameters of pose.set
NameTypeRequiredDescription
bonesstring | string[]noThe bones; the selected ones when left out
locationnumber[]noLocation in the bone's rest space, metres [x, y, z]
rotationnumber[]noRotation in degrees, XYZ Euler, in the bone's rest space [x, y, z]
scalenumber[]noScale [x, y, z]

Call through scene_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: bones, location, rotation, scale. 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"
        }
      ]
    },
    "location": {
      "description": "Location in the bone's rest space, metres [x, y, z]",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "rotation": {
      "description": "Rotation in degrees, XYZ Euler, in the bone's rest space [x, y, z]",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "scale": {
      "description": "Scale [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.