Scene kit command
sculpt.gesture
Box or Lasso
Applies a box or lasso gesture (mask, hide, face set, trim) over screen `points`.
- Kit
- Scene 0.1.0 (.kscene)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
action | "mask" | "unmask" | "hide" | "show" | "faceSet" | yes | What happens to what the shape encloses |
frontFacesOnly | boolean | no | Only what is seen, not what is behind it |
outside | boolean | no | Work on what lies outside the shape instead |
points | any[] | yes | [x, y] viewport pixels: a box's two corners or a lasso's outline |
shape | "box" | "lasso" | no | A box (two corners) or a lasso (the outline) |
value | number | no | mask: the mask value, 0 to 1 (1) |
Call through scene_run
text
scene_run {
"path": "<file>.kscene",
"steps": [{ "command": "sculpt.gesture", "params": { "action": <"mask" | "unmask" | "hide" | "show" | "faceSet">, "points": <any[]> } }]
}The required parameters, with placeholders for their types: not a tested example. Optional: frontFacesOnly, outside, shape, value. scene_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": {
"action": {
"description": "What happens to what the shape encloses",
"enum": [
"mask",
"unmask",
"hide",
"show",
"faceSet"
],
"type": "string"
},
"frontFacesOnly": {
"description": "Only what is seen, not what is behind it",
"type": "boolean"
},
"outside": {
"description": "Work on what lies outside the shape instead",
"type": "boolean"
},
"points": {
"description": "[x, y] viewport pixels: a box's two corners or a lasso's outline",
"items": {},
"type": "array"
},
"shape": {
"description": "A box (two corners) or a lasso (the outline)",
"enum": [
"box",
"lasso"
],
"type": "string"
},
"value": {
"description": "mask: the mask value, 0 to 1 (1)",
"type": "number"
}
},
"required": [
"action",
"points"
],
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (scene_commands through @kition/[email protected], built from KitionAI/kition-scene@4d06faf). As data: commands.jsonl.