Scene kit command

compositor.preview

Preview Compositing

Answers the compositing group's result (or a viewer node) as a picture of `size`.

Kit
Scene 0.1.0 (.kscene)
Changes the document
no

Parameters

Parameters of compositor.preview
NameTypeRequiredDescription
groupinteger | stringnoA compositing group to preview other than the render's: its id or name
sizeintegernoThe longer side of the preview in pixels, 16 to 2048 (480)
viewerbooleannoAnswer what the Viewer node shows instead of the output (false)

Call through scene_run

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

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

Result

Result JSON Schema
json
{
  "additionalProperties": true,
  "description": "the compositing group's preview picture",
  "properties": {},
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "group": {
      "description": "A compositing group to preview other than the render's: its id or name",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ],
      "x-khp-name": "name",
      "x-khp-types": [
        "NodeGroup"
      ]
    },
    "size": {
      "description": "The longer side of the preview in pixels, 16 to 2048 (480)",
      "type": "integer"
    },
    "viewer": {
      "description": "Answer what the Viewer node shows instead of the output (false)",
      "type": "boolean"
    }
  },
  "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.