Vector kit command
object.distort
Free Distort
Warps the selection or ids projectively so its bounds' four corners land on the given points, as Free Distort does.
- Kit
- Vector 0.1.0 (.kvector)
- Changes the document
- yes
- Acts on
ids(a list of ids), which a run step’sonfills
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
bend | number | no | read by the command beside its listed parameters |
corners | any[] | no | [[x,y]×4] (TL, TR, BR, BL); TL, TR, BR, BL |
from | number[] | no | [x0, y0, x1, y1]; default: selection bounds |
horizontal | number | no | read by the command beside its listed parameters |
ids | integer[] | no | object IDs |
orientation | string | no | read by the command beside its listed parameters |
vertical | number | no | read by the command beside its listed parameters |
Call through vector_run
text
vector_run {
"path": "<file>.kvector",
"steps": [{ "command": "object.distort" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: bend, corners, from, horizontal, ids, orientation, 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": {
"bend": {
"description": "read by the command beside its listed parameters",
"type": "number"
},
"corners": {
"description": "[[x,y]×4] (TL, TR, BR, BL); TL, TR, BR, BL",
"items": {},
"type": "array"
},
"from": {
"description": "[x0, y0, x1, y1]; default: selection bounds",
"items": {
"type": "number"
},
"type": "array"
},
"horizontal": {
"description": "read by the command beside its listed parameters",
"type": "number"
},
"ids": {
"description": "object IDs",
"items": {
"type": "integer"
},
"type": "array",
"x-khp-types": [
"Node"
]
},
"orientation": {
"description": "read by the command beside its listed parameters",
"type": "string"
},
"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.