Scene kit command

paint.brush

Brush Settings

Sets the weight paint brush (mode, weight, radius, strength, falloff, front faces only) and X mirror (`xMirror`, `topologyMirror`, `mirrorGroups`); answers them.

Kit
Scene 0.1.0 (.kscene)
Changes the document
no

Parameters

Parameters of paint.brush
NameTypeRequiredDescription
falloff"smooth" | "sphere" | "root" | "sharp" | "linear" | "constant"noHow the brush fades to its edge
frontFacesOnlybooleannoOnly vertices facing the view
mirrorGroupsbooleannoX mirror paints in the group of the mirrored name, Arm.L and Arm.R (true)
mode"draw" | "add" | "subtract" | "blur"noWhat a stroke does
radiusnumbernoRadius in pixels (50)
strengthnumbernoHow much one dab changes, 0 to 1 (1)
topologyMirrorbooleannoX mirror finds that vertex by the edges, for sides that differ in shape (false)
weightnumbernoThe weight painted, 0 to 1 (1)
xMirrorbooleannoPaint the vertex across X = 0 too (false)

Call through scene_run

text
scene_run {
  "path": "<file>.kscene",
  "steps": [{ "command": "paint.brush" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: falloff, frontFacesOnly, mirrorGroups, mode, radius, strength, topologyMirror, weight, xMirror. scene_run answers the step’s result in completed[i].result.

Result

Result of paint.brush
NameTypeRequiredDescription
falloffstringno
frontFacesOnlybooleanno
mirrorGroupsbooleanno
modestringno
radiusnumberno
strengthnumberno
topologyMirrorbooleanno
weightnumberno
xMirrorbooleanno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "falloff": {
      "type": "string"
    },
    "frontFacesOnly": {
      "type": "boolean"
    },
    "mirrorGroups": {
      "type": "boolean"
    },
    "mode": {
      "type": "string"
    },
    "radius": {
      "type": "number"
    },
    "strength": {
      "type": "number"
    },
    "topologyMirror": {
      "type": "boolean"
    },
    "weight": {
      "type": "number"
    },
    "xMirror": {
      "type": "boolean"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "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"
    },
    "mirrorGroups": {
      "description": "X mirror paints in the group of the mirrored name, Arm.L and Arm.R (true)",
      "type": "boolean"
    },
    "mode": {
      "description": "What a stroke does",
      "enum": [
        "draw",
        "add",
        "subtract",
        "blur"
      ],
      "type": "string"
    },
    "radius": {
      "description": "Radius in pixels (50)",
      "type": "number"
    },
    "strength": {
      "description": "How much one dab changes, 0 to 1 (1)",
      "type": "number"
    },
    "topologyMirror": {
      "description": "X mirror finds that vertex by the edges, for sides that differ in shape (false)",
      "type": "boolean"
    },
    "weight": {
      "description": "The weight painted, 0 to 1 (1)",
      "type": "number"
    },
    "xMirror": {
      "description": "Paint the vertex across X = 0 too (false)",
      "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.