Scene kit command

transform.set

Transform Settings

Sets the person's transform settings: the pivot point rotations and scales turn about, the orientation axis keys and the gizmo follow, snapping on or off and what it snaps to, and auto-keying (a confirmed transform keys what it changed at the current frame). View state: no undo step.

Kit
Scene 0.1.0 (.kscene)
Changes the document
no

Parameters

Parameters of transform.set
NameTypeRequiredDescription
autoKeybooleannoAuto-keying: a confirmed transform keys what it changed at the current frame, in its own undo step (false)
orientation"global" | "local" | "normal" | "view"noWhose axes the axis keys and the gizmo follow (global)
pivot"median" | "boundingBox" | "individual" | "cursor" | "active"noThe point rotations and scales turn about: the selection's median (the default), its bounding box's middle, each object's own origin, the 3D cursor, the active object
snapbooleannoTransforms snap (Ctrl inverts it while held); false
snapTarget"increment" | "vertex" | "edge" | "face"noWhat they snap to (increment)

Call through scene_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: autoKey, orientation, pivot, snap, snapTarget. scene_run answers the step’s result in completed[i].result.

Result

Result of transform.set
NameTypeRequiredDescription
autoKeybooleanno
orientationstringno
pivotstringno
snapbooleanno
snapTargetstringno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "autoKey": {
      "type": "boolean"
    },
    "orientation": {
      "type": "string"
    },
    "pivot": {
      "type": "string"
    },
    "snap": {
      "type": "boolean"
    },
    "snapTarget": {
      "type": "string"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "autoKey": {
      "description": "Auto-keying: a confirmed transform keys what it changed at the current frame, in its own undo step (false)",
      "type": "boolean"
    },
    "orientation": {
      "description": "Whose axes the axis keys and the gizmo follow (global)",
      "enum": [
        "global",
        "local",
        "normal",
        "view"
      ],
      "type": "string"
    },
    "pivot": {
      "description": "The point rotations and scales turn about: the selection's median (the default), its bounding box's middle, each object's own origin, the 3D cursor, the active object",
      "enum": [
        "median",
        "boundingBox",
        "individual",
        "cursor",
        "active"
      ],
      "type": "string"
    },
    "snap": {
      "description": "Transforms snap (Ctrl inverts it while held); false",
      "type": "boolean"
    },
    "snapTarget": {
      "description": "What they snap to (increment)",
      "enum": [
        "increment",
        "vertex",
        "edge",
        "face"
      ],
      "type": "string"
    }
  },
  "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.