Vector kit command

transparency.info

Transparency Info

Answers the Transparency panel values of ids or the selection: opacity, blend mode, isolation, knockout and the page's isolated-blending and knockout settings.

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.info
NameTypeRequiredDescription
idintegernoobject ID
idsinteger[]noobject IDs

Call through vector_run

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

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 of transparency.info
NameTypeRequiredDescription
blendstringno
editingMaskanyno
idsnumber[]no
isolatebooleanno
knockoutstringno
knockoutShapebooleanno
opacitynumberno
pageIsolatedBlendingbooleanno
pageKnockoutGroupbooleanno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "blend": {
      "type": "string"
    },
    "editingMask": {},
    "ids": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "isolate": {
      "type": "boolean"
    },
    "knockout": {
      "type": "string"
    },
    "knockoutShape": {
      "type": "boolean"
    },
    "opacity": {
      "type": "number"
    },
    "pageIsolatedBlending": {
      "type": "boolean"
    },
    "pageKnockoutGroup": {
      "type": "boolean"
    }
  },
  "type": "object"
}

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": "{ids, opacity: 0..100, blend, isolate, knockout: \"on\"|\"off\"|\"neutral\", knockoutShape, editingMask, pageIsolatedBlending, pageKnockoutGroup} the Transparency panel's values for `ids`, the selection, or the object whose mask is being edited. A value is null where those objects differ (or there are none); editingMask is the id of the object whose mask is being edited, or null; the page values are the document's",
  "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.