Vector kit command

transparency.opacityMaskInfo

Opacity Mask Info

Answers the opacity masks of ids or the selection: whether each clips, is inverted, disabled or linked, and its art.

Kit
Vector 0.1.0 (.kvector)
Changes the document
no
Acts on
ids (a list of ids), which a run step’s on fills

Parameters

Parameters of transparency.opacityMaskInfo
NameTypeRequiredDescription
idintegernoobject ID
idsinteger[]noobject IDs

Call through vector_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: id, ids. vector_run answers the step’s result in completed[i].result.

Result

Result JSON Schema
json
{
  "type": "array"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "id": {
      "description": "object ID",
      "type": "integer",
      "x-khp-types": [
        "Node"
      ]
    },
    "ids": {
      "description": "object IDs",
      "items": {
        "type": "integer"
      },
      "type": "array",
      "x-khp-types": [
        "Node"
      ]
    }
  },
  "returns": "[{id, clip, invert, disabled, linked, art}] the opacity masks of `ids`, the selection, or the object whose mask is being edited",
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (vector_commands through @kition/[email protected], built from KitionAI/kition-vector@7cf908f). As data: commands.jsonl.