Vector kit command

paint.freeform.get

Freeform Gradient

Answers the freeform gradient behind the first selected object's fill or stroke: its mode, points, lines and selected point.

Kit
Vector 0.1.0 (.kvector)
Changes the document
no

Parameters

Parameters of paint.freeform.get
NameTypeRequiredDescription
strokebooleannodefault: the active proxy

Call through vector_run

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

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

Result

Result of paint.freeform.get
NameTypeRequiredDescription
linesany[]no
modeanyno
pointsany[]no
selectedanyno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "lines": {
      "type": "array"
    },
    "mode": {},
    "points": {
      "type": "array"
    },
    "selected": {}
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "stroke": {
      "description": "default: the active proxy",
      "type": "boolean"
    }
  },
  "returns": "{mode: points|lines, points: [{at: [x,y] (document coordinates), color, opacity, spread}], lines: [[index, …]], selected: index|null}",
  "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.