Scene kit command

compositor.pickMatte

Pick Matte

Adds the name under `x`, `y` of the render to a Cryptomatte node's matte (or takes it away with `remove`).

Kit
Scene 0.1.0 (.kscene)
Changes the document
yes

Parameters

Parameters of compositor.pickMatte
NameTypeRequiredDescription
groupinteger | stringnoThe compositing group (the one renders use when left out): its id or name
nodeintegeryesThe Cryptomatte node's id
removebooleannoTake the name away from the matte instead (false)
xnumberyesAcross the render, 0 (left) to 1 (right)
ynumberyesDown the render, 0 (top) to 1 (bottom)

Call through scene_run

text
scene_run {
  "path": "<file>.kscene",
  "steps": [{ "command": "compositor.pickMatte", "params": { "node": <integer>, "x": <number>, "y": <number> } }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: group, remove. 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": {
    "group": {
      "description": "The compositing group (the one renders use when left out): its id or name",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ],
      "x-khp-name": "name",
      "x-khp-types": [
        "NodeGroup"
      ]
    },
    "node": {
      "description": "The Cryptomatte node's id",
      "type": "integer",
      "x-khp-types": [
        "Node"
      ]
    },
    "remove": {
      "description": "Take the name away from the matte instead (false)",
      "type": "boolean"
    },
    "x": {
      "description": "Across the render, 0 (left) to 1 (right)",
      "type": "number"
    },
    "y": {
      "description": "Down the render, 0 (top) to 1 (bottom)",
      "type": "number"
    }
  },
  "required": [
    "node",
    "x",
    "y"
  ],
  "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.