Vector kit command

object.pinWarp

Pin Warp

Warps the selected art by moving warp pins from their positions to targets (optionally turning around pins).

Kit
Vector 0.1.0 (.kvector)
Changes the document
yes
Acts on
ids (a list of ids), which a run step’s on fills

Parameters

Parameters of object.pinWarp
NameTypeRequiredDescription
anglesany[]nosame length: the turn the art takes around each pin, as Alt-dragging around a pin does; null leaves it free
bendnumbernoread by the command beside its listed parameters
expandnumbernopoints
horizontalnumbernoread by the command beside its listed parameters
idintegernoobject ID
idsinteger[]noobject IDs
movedany[]notargets, same length
orientationstringnoread by the command beside its listed parameters
pinsany[]nocurrent pin positions
restbooleanno
verticalnumbernoread by the command beside its listed parameters

Call through vector_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: angles, bend, expand, horizontal, id, ids, moved, orientation, pins, rest, vertical. 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": {
    "angles": {
      "description": "same length: the turn the art takes around each pin, as Alt-dragging around a pin does; null leaves it free",
      "type": "array"
    },
    "bend": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    },
    "expand": {
      "description": "points",
      "type": "number"
    },
    "horizontal": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    },
    "id": {
      "description": "object ID",
      "type": "integer",
      "x-khp-types": [
        "Node"
      ]
    },
    "ids": {
      "description": "object IDs",
      "items": {
        "type": "integer"
      },
      "type": "array",
      "x-khp-types": [
        "Node"
      ]
    },
    "moved": {
      "description": "targets, same length",
      "type": "array"
    },
    "orientation": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    },
    "pins": {
      "description": "current pin positions",
      "type": "array"
    },
    "rest": {
      "type": "boolean"
    },
    "vertical": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    }
  },
  "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.