Scene kit command

node.unlink

Unlink Sockets

Removes the link between two sockets in `group`.

Kit
Scene 0.1.0 (.kscene)
Changes the document
yes

Parameters

Parameters of node.unlink
NameTypeRequiredDescription
fromintegernoOnly the link from this node: its id
fromSocketstringnoOnly the link from this output socket
groupinteger | stringnoThe group's id or name; the only group when left out
tointegeryesThe node whose input to unlink: its id
toSocketstringyesThe input socket's id

Call through scene_run

text
scene_run {
  "path": "<file>.kscene",
  "steps": [{ "command": "node.unlink", "params": { "to": <integer>, "toSocket": <string> } }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: from, fromSocket, group. 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": {
    "from": {
      "description": "Only the link from this node: its id",
      "type": "integer",
      "x-khp-types": [
        "Node"
      ]
    },
    "fromSocket": {
      "description": "Only the link from this output socket",
      "type": "string"
    },
    "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"
      ]
    },
    "to": {
      "description": "The node whose input to unlink: its id",
      "type": "integer",
      "x-khp-types": [
        "Node"
      ]
    },
    "toSocket": {
      "description": "The input socket's id",
      "type": "string"
    }
  },
  "required": [
    "to",
    "toSocket"
  ],
  "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.