Scene kit command

node.describe

Describe Node Kinds

Lists the node kinds a tree takes (or one `kind`) with their inputs, outputs and properties, for `node.addNode`.

Kit
Scene 0.1.0 (.kscene)
Changes the document
no

Parameters

Parameters of node.describe
NameTypeRequiredDescription
groupinteger | stringnoThe group's id or name; the only group when left out
kindstringnoOne kind; every kind when left out
tree"geometry" | "compositor" | "shader"noOnly the kinds a geometry, a compositing, or a shader group takes

Call through scene_run

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

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

Result

Result of node.describe
NameTypeRequiredDescription
kindsobject[]no
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "kinds": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "category": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "inputs": {},
          "outputs": {},
          "settings": {},
          "title": {
            "type": "string"
          },
          "trees": {}
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "group": {
      "description": "The group's id or name; the only group when left out",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ],
      "x-khp-name": "name",
      "x-khp-types": [
        "NodeGroup"
      ]
    },
    "kind": {
      "description": "One kind; every kind when left out",
      "type": "string"
    },
    "tree": {
      "description": "Only the kinds a geometry, a compositing, or a shader group takes",
      "enum": [
        "geometry",
        "compositor",
        "shader"
      ],
      "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.