Vector kit command

paint.proxies

Fill and Stroke

Answers the paints the Fill and Stroke proxies show (from the selection or the defaults for new art) and which is active.

Kit
Vector 0.1.0 (.kvector)
Changes the document
no

Parameters

Parameters of paint.proxies
NameTypeRequiredDescription
onbooleannoread by the command beside its listed parameters

Call through vector_run

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

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

Result

Result of paint.proxies
NameTypeRequiredDescription
fillobjectno
fillActivebooleanno
fillMixedbooleanno
shownanyno
strokeobjectno
strokeMixedbooleanno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "fill": {
      "additionalProperties": true,
      "properties": {
        "color": {
          "additionalProperties": true,
          "properties": {
            "b": {
              "type": "number"
            },
            "g": {
              "type": "number"
            },
            "model": {
              "type": "string"
            },
            "r": {
              "type": "number"
            }
          },
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "fillActive": {
      "type": "boolean"
    },
    "fillMixed": {
      "type": "boolean"
    },
    "shown": {},
    "stroke": {
      "additionalProperties": true,
      "properties": {
        "color": {
          "additionalProperties": true,
          "properties": {
            "b": {
              "type": "number"
            },
            "g": {
              "type": "number"
            },
            "model": {
              "type": "string"
            },
            "r": {
              "type": "number"
            }
          },
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "strokeMixed": {
      "type": "boolean"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "on": {
      "description": "read by the command beside its listed parameters",
      "type": "boolean"
    }
  },
  "returns": "{fill, stroke: the paints the Fill/Stroke proxies show (the Appearance panel's active item for the proxy of its kind, else the first selected object's, a group's first painted object's, type: its first run's; else the defaults for new art), fillActive, fillMixed, strokeMixed: the selected objects' (or a selected group's contents') fills (strokes) differ, shown as a \"?\" proxy}",
  "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.