Scene kit command
sculpt.dyntopo
Dynamic Topology
Turns dynamic topology on or off and sets its detail mode and size.
- Kit
- Scene 0.1.0 (.kscene)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
detailSize | number | no | Relative: the longest edge in screen pixels (12) |
enabled | boolean | no | Dynamic topology on (cuts the mesh into triangles) or off |
mode | "relative" | "constant" | "brush" | no | How the detail size is measured |
percent | number | no | Brush: the longest edge as a percentage of the brush radius (25) |
refine | "subdivideCollapse" | "subdivide" | "collapse" | no | What a dab does to the edges under it |
resolution | number | no | Constant: edges per metre (12) |
Call through scene_run
text
scene_run {
"path": "<file>.kscene",
"steps": [{ "command": "sculpt.dyntopo" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: detailSize, enabled, mode, percent, refine, resolution. 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": {
"detailSize": {
"description": "Relative: the longest edge in screen pixels (12)",
"type": "number"
},
"enabled": {
"description": "Dynamic topology on (cuts the mesh into triangles) or off",
"type": "boolean"
},
"mode": {
"description": "How the detail size is measured",
"enum": [
"relative",
"constant",
"brush"
],
"type": "string"
},
"percent": {
"description": "Brush: the longest edge as a percentage of the brush radius (25)",
"type": "number"
},
"refine": {
"description": "What a dab does to the edges under it",
"enum": [
"subdivideCollapse",
"subdivide",
"collapse"
],
"type": "string"
},
"resolution": {
"description": "Constant: edges per metre (12)",
"type": "number"
}
},
"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.