---
title: "sculpt.dyntopo: Dynamic Topology — Scene kit command — Kition"
description: "Turns dynamic topology on or off and sets its detail mode and size."
canonical: "https://developer.kition.ai/docs/kits/scene/commands/sculpt.dyntopo"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/scene/commands/sculpt.dyntopo](https://developer.kition.ai/docs/kits/scene/commands/sculpt.dyntopo)

# sculpt.dyntopo

**Dynamic Topology.** Turns dynamic topology on or off and sets its detail mode and size.

- Kit: Scene 0.1.0 (.kscene); reference: [Scene kit commands](https://developer.kition.ai/docs/kits/scene.md)
- 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/scene-darwin-arm64@0.1.0 and the kit itself (scene_commands through @kition/cli@0.1.1, built from KitionAI/kition-scene@4d06faf).
