---
title: "compositor.preview: Preview Compositing — Scene kit command — Kition"
description: "Answers the compositing group's result (or a viewer node) as a picture of `size`."
canonical: "https://developer.kition.ai/docs/kits/scene/commands/compositor.preview"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/scene/commands/compositor.preview](https://developer.kition.ai/docs/kits/scene/commands/compositor.preview)

# 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); reference: [Scene kit commands](https://developer.kition.ai/docs/kits/scene.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `group` | `integer \| string` | no | A compositing group to preview other than the render's: its id or name |
| `size` | `integer` | no | The longer side of the preview in pixels, 16 to 2048 (480) |
| `viewer` | `boolean` | no | Answer 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



```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/scene-darwin-arm64@0.1.0 and the kit itself (scene_commands through @kition/cli@0.1.1, built from KitionAI/kition-scene@4d06faf).
