---
title: "transparency.set: Transparency — Vector kit command — Kition"
description: "Sets opacity, blend mode, isolation and knockout of ids or the selection (or of one appearance item), as the Transparency panel does."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/transparency.set"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/vector/commands/transparency.set](https://developer.kition.ai/docs/kits/vector/commands/transparency.set)

# transparency.set

**Transparency.** Sets opacity, blend mode, isolation and knockout of ids or the selection (or of one appearance item), as the Transparency panel does.

- Kit: Vector 0.1.0 (.kvector); reference: [Vector kit commands](https://developer.kition.ai/docs/kits/vector.md)
- Changes the document: yes
- Acts on: `ids` (a list of ids), which a run step’s `on` fills

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `blend` | `string` | no |  |
| `id` | `integer` | no | object ID |
| `ids` | `integer[]` | no | object IDs |
| `isolate` | `boolean` | no |  |
| `item` | `integer \| null` | no |  |
| `knockout` | `"on" \| "off" \| "neutral" \| boolean` | no |  |
| `knockoutShape` | `boolean` | no |  |
| `opacity` | `integer` | no | 0 to 100 |
| `target` | `string` | no | "object" (default) or "contents": the objects themselves, or what their groups and layers hold |

## Call through vector_run

```text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "transparency.set" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `blend`, `id`, `ids`, `isolate`, `item`, `knockout`, `knockoutShape`, `opacity`, `target`. vector_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": {
    "blend": {
      "type": "string"
    },
    "id": {
      "description": "object ID",
      "type": "integer",
      "x-khp-types": [
        "Node"
      ]
    },
    "ids": {
      "description": "object IDs",
      "items": {
        "type": "integer"
      },
      "type": "array",
      "x-khp-types": [
        "Node"
      ]
    },
    "isolate": {
      "type": "boolean"
    },
    "item": {
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "knockout": {
      "oneOf": [
        {
          "enum": [
            "on",
            "off",
            "neutral"
          ],
          "type": "string"
        },
        {
          "type": "boolean"
        }
      ]
    },
    "knockoutShape": {
      "type": "boolean"
    },
    "opacity": {
      "description": "0 to 100",
      "type": "integer"
    },
    "target": {
      "description": "\"object\" (default) or \"contents\": the objects themselves, or what their groups and layers hold",
      "type": "string"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/vector-darwin-arm64@0.1.0 and the kit itself (vector_commands through @kition/cli@0.1.1, built from KitionAI/kition-vector@7cf908f).
