Scene kit command

operation.get

Last Operation

Answers the person's last operation (an added object, an edit-mode operation, a confirmed transform) with the values it ran with and its adjustable fields, or null once anything else happened.

Kit
Scene 0.1.0 (.kscene)
Changes the document
no

Parameters

None.

Call through scene_run

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

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

Result

Result of operation.get
NameTypeRequiredDescription
operationobjectnonull when there is none
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "operation": {
      "additionalProperties": true,
      "description": "null when there is none",
      "properties": {
        "command": {
          "description": "null for a transform",
          "type": "string"
        },
        "fields": {
          "items": {
            "additionalProperties": true,
            "properties": {
              "key": {
                "type": "string"
              },
              "type": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "params": {
          "additionalProperties": true,
          "properties": {},
          "type": "object"
        },
        "title": {
          "type": "string"
        }
      },
      "type": "object"
    }
  },
  "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.