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

Parameters of sculpt.brush
NameTypeRequiredDescription
autoSmoothnumbernoSmoothing after each dab, 0 to 1
falloff"smooth" | "sphere" | "root" | "sharp" | "linear" | "constant"noHow the brush fades to its edge
frontFacesOnlybooleannoOnly vertices facing the view
kind"draw" | "clayStrips" | "smooth" | "grab" | "inflate" | "crease" | "flatten" | "pinch" | "snakeHook" | "mask" | "drawFaceSets"noThe brush
radiusnumbernoRadius in viewport pixels (50)
spacingnumbernoDistance between dabs as a share of the radius (0.1)
strengthnumbernoStrength at the centre, 0 to 1 (0.5; 1 for grab, snake hook, crease, mask, draw face sets)
subtractbooleannoThe other direction: in instead of out, unmask instead of mask
symmetryboolean[]noMirror dabs across the object's own [x, y, z] (x on)
usePressurebooleannoPen 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

Result of sculpt.brush
NameTypeRequiredDescription
brushanyno
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.