---
title: "compositor.pickMatte: Pick Matte — Scene kit command — Kition"
description: "Adds the name under `x`, `y` of the render to a Cryptomatte node's matte (or takes it away with `remove`)."
canonical: "https://developer.kition.ai/docs/kits/scene/commands/compositor.pickMatte"
---

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

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `group` | `integer \| string` | no | The compositing group (the one renders use when left out): its id or name |
| `node` | `integer` | yes | The Cryptomatte node's id |
| `remove` | `boolean` | no | Take the name away from the matte instead (false) |
| `x` | `number` | yes | Across the render, 0 (left) to 1 (right) |
| `y` | `number` | yes | Down 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/scene-darwin-arm64@0.1.0 and the kit itself (scene_commands through @kition/cli@0.1.1, built from KitionAI/kition-scene@4d06faf).
