Vector kit command

brush.options

Brush Options…

Changes a brush's definition fields (see brush.get); out-of-range values are clamped.

Kit
Vector 0.1.0 (.kvector)
Changes the document
yes

Parameters

Parameters of brush.options
NameTypeRequiredDescription
namestringno
newNamestringno
paramsobjectno{…fields to change (brush.get shows them; values outside their ranges are clamped). calligraphic: angle −180..180°, roundness 0..100%, size 0..1296 pt, variation: [angle°, roundness%, size pt], modes: [fixed|random|pressure for angle, roundness, size] (pressure goes from value − variation at the lightest pen pressure to value + variation at the heaviest). scatter: size [a, b] 1..10000%, spacing [a, b] 1..10000%, scatter [a, b] −1000..1000%, rotation [a, b] −180..180°, modes: [fixed|random|pressure for size, spacing, scatter, rotation] (fixed: a; random: between a and b; pressure: a at the lightest pen pressure to b at the heaviest), rotation_relative_to_path. art: width 1..1000%, scale: {mode: proportional|stretch|betweenGuides, start, end: 0..1 of the art length}, direction: leftToRight|rightToLeft|topToBottom|bottomToTop, flip_along, flip_across. pattern: scale 1..10000%, spacing 0..10000%, fit: stretch|addSpace|approximate, flip_along, flip_across. scatter, art and pattern: colorization: {method: none|tints|tintsAndShades|hueShift, key: colour (hueShift: the art colour that becomes the stroke colour)}}; brush.get shows them; values outside their ranges are clamped; pressure goes from value − variation at the lightest pen pressure to value + variation at the heaviest; fixed: a; random: between a and b; pressure: a at the lightest pen pressure to b at the heaviest; hueShift: the art colour that becomes the stroke colour
typestringnoread by the command beside its listed parameters

Call through vector_run

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

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

Result

The kit gives no result schema for this command.

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "name": {
      "type": "string"
    },
    "newName": {
      "type": "string"
    },
    "params": {
      "additionalProperties": true,
      "description": "{…fields to change (brush.get shows them; values outside their ranges are clamped). calligraphic: angle −180..180°, roundness 0..100%, size 0..1296 pt, variation: [angle°, roundness%, size pt], modes: [fixed|random|pressure for angle, roundness, size] (pressure goes from value − variation at the lightest pen pressure to value + variation at the heaviest). scatter: size [a, b] 1..10000%, spacing [a, b] 1..10000%, scatter [a, b] −1000..1000%, rotation [a, b] −180..180°, modes: [fixed|random|pressure for size, spacing, scatter, rotation] (fixed: a; random: between a and b; pressure: a at the lightest pen pressure to b at the heaviest), rotation_relative_to_path. art: width 1..1000%, scale: {mode: proportional|stretch|betweenGuides, start, end: 0..1 of the art length}, direction: leftToRight|rightToLeft|topToBottom|bottomToTop, flip_along, flip_across. pattern: scale 1..10000%, spacing 0..10000%, fit: stretch|addSpace|approximate, flip_along, flip_across. scatter, art and pattern: colorization: {method: none|tints|tintsAndShades|hueShift, key: colour (hueShift: the art colour that becomes the stroke colour)}}; brush.get shows them; values outside their ranges are clamped; pressure goes from value − variation at the lightest pen pressure to value + variation at the heaviest; fixed: a; random: between a and b; pressure: a at the lightest pen pressure to b at the heaviest; hueShift: the art colour that becomes the stroke colour",
      "properties": {
        "direction": {
          "enum": [
            "leftToRight",
            "rightToLeft",
            "topToBottom",
            "bottomToTop"
          ],
          "type": "string"
        },
        "fit": {
          "enum": [
            "stretch",
            "addSpace",
            "approximate"
          ],
          "type": "string"
        },
        "flip_along": {},
        "modes": {
          "description": "[fixed|random|pressure for angle, roundness, size] . scatter: size [a, b] 1..10000%"
        },
        "scale": {
          "additionalProperties": true,
          "properties": {
            "end": {
              "description": "0 to 1",
              "type": "number"
            },
            "mode": {
              "enum": [
                "proportional",
                "stretch",
                "betweenGuides"
              ],
              "type": "string"
            },
            "start": {
              "type": "number"
            }
          },
          "type": "object"
        },
        "variation": {
          "description": "[angle°, roundness%, size pt]",
          "type": "array"
        }
      },
      "type": "object"
    },
    "type": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    }
  },
  "returns": "{name}",
  "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.