Scene kit command
sculpt.brush
Brush Settings
Sets the sculpt brush (kind, radius, strength, falloff, auto-smooth) and answers it.
- Kit
- Scene 0.1.0 (.kscene)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
autoSmooth | number | no | Smoothing after each dab, 0 to 1 |
falloff | "smooth" | "sphere" | "root" | "sharp" | "linear" | "constant" | no | How the brush fades to its edge |
frontFacesOnly | boolean | no | Only vertices facing the view |
kind | "draw" | "clayStrips" | "smooth" | "grab" | "inflate" | "crease" | "flatten" | "pinch" | "snakeHook" | "mask" | "drawFaceSets" | no | The brush |
radius | number | no | Radius in viewport pixels (50) |
spacing | number | no | Distance between dabs as a share of the radius (0.1) |
strength | number | no | Strength at the centre, 0 to 1 (0.5; 1 for grab, snake hook, crease, mask, draw face sets) |
subtract | boolean | no | The other direction: in instead of out, unmask instead of mask |
symmetry | boolean[] | no | Mirror dabs across the object's own [x, y, z] (x on) |
usePressure | boolean | no | Pen pressure scales the strength (true) |
Call through scene_run
text
scene_run {
"path": "<file>.kscene",
"steps": [{ "command": "sculpt.brush" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: autoSmooth, falloff, frontFacesOnly, kind, radius, spacing, strength, subtract, symmetry, usePressure. scene_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
brush | any | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"brush": {}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"autoSmooth": {
"description": "Smoothing after each dab, 0 to 1",
"type": "number"
},
"falloff": {
"description": "How the brush fades to its edge",
"enum": [
"smooth",
"sphere",
"root",
"sharp",
"linear",
"constant"
],
"type": "string"
},
"frontFacesOnly": {
"description": "Only vertices facing the view",
"type": "boolean"
},
"kind": {
"description": "The brush",
"enum": [
"draw",
"clayStrips",
"smooth",
"grab",
"inflate",
"crease",
"flatten",
"pinch",
"snakeHook",
"mask",
"drawFaceSets"
],
"type": "string"
},
"radius": {
"description": "Radius in viewport pixels (50)",
"type": "number"
},
"spacing": {
"description": "Distance between dabs as a share of the radius (0.1)",
"type": "number"
},
"strength": {
"description": "Strength at the centre, 0 to 1 (0.5; 1 for grab, snake hook, crease, mask, draw face sets)",
"type": "number"
},
"subtract": {
"description": "The other direction: in instead of out, unmask instead of mask",
"type": "boolean"
},
"symmetry": {
"description": "Mirror dabs across the object's own [x, y, z] (x on)",
"items": {
"type": "boolean"
},
"type": "array"
},
"usePressure": {
"description": "Pen pressure scales the strength (true)",
"type": "boolean"
}
},
"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.