Vector kit command
object.envelope.makeWithWarp
Make with Warp…
Wraps the selected objects in a warp envelope of a style (arc, wave, flag, fisheye…) with bend and distortion; answers the envelope's id.
- 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 | |
h | number | no | |
horizontal | boolean | no | |
horizontalDistortion | 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 |
style | "arc" | "arcLower" | "arcUpper" | "arch" | "bulge" | "shellLower" | "shellUpper" | "flag" | "wave" | "fish" | "rise" | "fisheye" | "inflate" | "squeeze" | "twist" | no | arc |
v | number | no | |
vertical | number | no | read by the command beside its listed parameters |
verticalDistortion | number | no | read by the command beside its listed parameters |
Call through vector_run
text
vector_run {
"path": "<file>.kvector",
"steps": [{ "command": "object.envelope.makeWithWarp" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: bend, h, horizontal, horizontalDistortion, ids, orientation, style, v, vertical, verticalDistortion. 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": {
"type": "number"
},
"h": {
"type": "number"
},
"horizontal": {
"type": "boolean"
},
"horizontalDistortion": {
"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"
},
"style": {
"description": "arc",
"enum": [
"arc",
"arcLower",
"arcUpper",
"arch",
"bulge",
"shellLower",
"shellUpper",
"flag",
"wave",
"fish",
"rise",
"fisheye",
"inflate",
"squeeze",
"twist"
],
"type": "string"
},
"v": {
"type": "number"
},
"vertical": {
"description": "read by the command beside its listed parameters",
"type": "number"
},
"verticalDistortion": {
"description": "read by the command beside its listed parameters",
"type": "number"
}
},
"returns": "{id}",
"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.