Vector kit command

attribute.info

Attributes

Answers the Attributes panel values of the selection: overprint, centre point, image map, URL, note, fill rule and path direction.

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 attribute.info
NameTypeRequiredDescription
idintegernoobject ID
idsinteger[]noobject IDs
itemintegerno
targetstringno"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": "attribute.info" }]
}

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

Result

Result of attribute.info
NameTypeRequiredDescription
fillRulestringno
idsnumber[]no
imageMapstringno
notestringno
overprintFillbooleanno
overprintStrokebooleanno
recentUrlsany[]no
reversedbooleanno
showCenterbooleanno
urlstringno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "fillRule": {
      "type": "string"
    },
    "ids": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "imageMap": {
      "type": "string"
    },
    "note": {
      "type": "string"
    },
    "overprintFill": {
      "type": "boolean"
    },
    "overprintStroke": {
      "type": "boolean"
    },
    "recentUrls": {
      "type": "array"
    },
    "reversed": {
      "type": "boolean"
    },
    "showCenter": {
      "type": "boolean"
    },
    "url": {
      "type": "string"
    }
  },
  "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"
      ]
    },
    "item": {
      "type": "integer"
    },
    "target": {
      "description": "\"object\" (default) or \"contents\": the objects themselves, or what their groups and layers hold",
      "type": "string"
    }
  },
  "returns": "{ids, overprintFill, overprintStroke, showCenter, imageMap: \"none\"|\"rectangle\"|\"polygon\", url, note, fillRule: \"nonZero\"|\"evenOdd\" (of the paths and compound paths in them), reversed (their subpaths run counter-clockwise on screen: Reverse Path Direction On), recentUrls: [newest first]} the Attributes panel's values for `ids` or the selection, overprint aimed as object.setOverprint aims; a value is null where they differ (or nothing has a fill, stroke or path)",
  "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.