Sculpt Blendshape Target
tb.ops.sculpt.blendshape.set_target(*, target: str = "") -> Result
Sculpt a blendshape target (shown at full strength, the other targets off) or the Base: strokes then move only that target, the Base and the other targets stay. Dynamic topology must be off (a target is indexed by the mesh's vertices). Changing what is sculpted is undoable.
Get Sculpt Brush
tb.ops.sculpt.brush.get(*, brush: str = ...) -> Result
A brush's full settings ({stroke, sculpt}).
Sculpt Brushes
tb.ops.sculpt.brush.list() -> Result
Built-in working brushes with their kind and category; named personal presets use presets.list.
Reset Sculpt Brush
tb.ops.sculpt.brush.reset(*, brush: str = ...) -> Result
Restore a built-in brush's default settings.
Select Sculpt Brush
tb.ops.sculpt.brush.select(*, brush: str) -> Result
Make a brush the active one.
Set Sculpt Brush
tb.ops.sculpt.brush.set(*, brush: str = ..., settings: Any) -> Result
Change a brush's settings with a patch {stroke: {size, opacity, hardness, spacing, falloff, strokeMethod, dynamics, stabilizer, …}, sculpt: {autoSmooth, normalRadius, planeOffset, layerHeight, automask: {…}, …}}.
Cloth Filter
tb.ops.sculpt.cloth.filter(
*,
filter: Literal["gravity", "inflate", "expand", "pinch", "scale"] = "gravity",
strength: float = 0.5,
steps: int = 20,
damping: float = 0.05,
collisions: bool = False,
persistent: bool = False,
) -> Result
Simulate the whole mesh as cloth for a number of steps: gravity drapes it over the masked (pinned) parts, inflate / expand / pinch push it, scale grows or shrinks it while edges keep their length. One undo step.
Set Persistent Base
tb.ops.sculpt.cloth.persistent_base(*, clear: bool = False) -> Result
Store the current shape as the cloth's persistent base: Cloth strokes and the cloth filter with Persistent on measure lengths and Pin from it, so stroke after stroke relaxes towards it. Kept until cleared or the topology changes.
Color Filter
tb.ops.sculpt.color.filter(
*,
filter: Literal["fill", "hue", "saturation", "value", "brightness", "contrast", "smooth", "red", "green", "blue"] = "fill",
strength: float = 1.0,
color: Any = ...,
) -> Result
Change the painted vertex colors of every visible, unmasked vertex: fill with a color, shift hue / saturation / value, brightness / contrast, smooth (negative: sharpen) or raise one channel. Creates the color attribute when the mesh has none.
Sample Color
tb.ops.sculpt.color.sample(
*,
point: Any = ...,
view: Any = ...,
x: float = ...,
y: float = ...,
apply: bool = True,
) -> Result
The painted color on the surface at a point (or under a screen position); apply (default) makes it the Paint brush color.
Sculpt
tb.ops.sculpt.commit(*, staged: int) -> Result
Writes a staged sculpt session result into the document (one undo step). Sculpt mode calls it when it applies; the staged token works once.
Sculpt Display
tb.ops.sculpt.display.set(
*,
color: bool = ...,
mask: bool = ...,
mask_opacity: float = ...,
face_sets: bool = ...,
face_set_opacity: float = ...,
) -> Result
Painted colors, mask and face-set overlay visibility and opacity.
Dynamic Topology
tb.ops.sculpt.dyntopo.set(
*,
enabled: bool = ...,
mode: Literal["relative", "constant", "brush"] = ...,
detail_px: float = ...,
detail_size: float = ...,
brush_percent: float = ...,
refine: Literal["subdivide-collapse", "subdivide", "collapse"] = ...,
) -> Result
Dynamic topology: brushes add and remove triangles to keep edges near the detail size. Turning it on triangulates the mesh.
Sculpt Mode
tb.ops.sculpt.enter(
*,
node: ObjectRef = ...,
mesh_id: MeshRef = ...,
brush_type: Literal["clay", "brush", "move", "drag", "smooth", "layer", "inflate", "nudge", "stamp", "del-layer", "displacement-erase", "displacement-smear", "flatten", "planar", "crease", "pinch", "mask", "facegroup", "paint", "smudge", "pose", "boundary", "cloth"] = ...,
radius: float = ...,
strength: float = ...,
) -> Result
Start sculpting the selected mesh object. The mesh is copied once into a sculpt session; strokes and sculpt edits stay in it (with their own undo steps) until you leave sculpt mode, which writes them back as one undo step.
Leave Sculpt Mode
tb.ops.sculpt.exit(*, apply: bool = True) -> Result
Leave sculpt mode. apply (default) writes the session back as one undo step; apply: false discards every change made in this session.
Create Face Sets
tb.ops.sculpt.face_sets.create(
*,
source: Literal["masked", "visible", "loose-parts", "normals", "materials", "all"],
angle: float = 30.0,
) -> Result
Group faces into new face sets.
Face Set from Selection
tb.ops.sculpt.face_sets.from_selection() -> Result
The selected faces (component selection) become a new face set.
Grow Face Set
tb.ops.sculpt.face_sets.grow(*, face_set: int) -> Result
Grow a face set by one ring of faces.
Randomise Face Set Colors
tb.ops.sculpt.face_sets.randomize() -> Result
Pick new display colors for every face set.
Shrink Face Set
tb.ops.sculpt.face_sets.shrink(*, face_set: int) -> Result
Shrink a face set by one ring of faces.
Mesh Filter
tb.ops.sculpt.filter(
*,
filter: Literal["inflate", "smooth", "scale", "sphere", "random", "relax", "sharpen"],
strength: float = 0.5,
seed: int = 0,
) -> Result
Apply a filter to every unmasked vertex: inflate, smooth, scale, sphere, random, relax or sharpen.
Apply Sculpting
tb.ops.sculpt.flush() -> Result
Write the session's changes to the document now (one undo step) and keep sculpting.
Hide Face Set
tb.ops.sculpt.hide.face_set(*, face_set: int, isolate: bool = False) -> Result
Hide a face set, or isolate it (hide everything else).
Box / Lasso Hide
tb.ops.sculpt.hide.gesture(*, polygon: Any, view: Any, show: bool = False) -> Result
Hide (or show) faces inside a screen polygon.
Invert Visibility
tb.ops.sculpt.hide.invert() -> Result
Hide what is visible and show what is hidden.
Hide Masked
tb.ops.sculpt.hide.masked(*, masked: bool = True) -> Result
Hide the masked faces (or the unmasked ones).
Show All
tb.ops.sculpt.hide.show_all() -> Result
Reveal every hidden face.
Sculpt on Layer
tb.ops.sculpt.layer.activate(*, layer: int) -> Result
Choose where strokes go: a sculpt layer, or the base mesh (layer 0). Changing targets is undoable.
Add Sculpt Layer
tb.ops.sculpt.layer.add(*, name: str = "Layer") -> Result
Add an empty sculpt layer on top and sculpt on it: strokes are recorded in the layer, whose strength and visibility can change later (Nomad layers).
Apply All Sculpt Layers
tb.ops.sculpt.layer.apply_all(*, mesh: MeshRef = ...) -> Result
Merge every sculpt layer into the base mesh; the surface does not change.
Sculpt Layers
tb.ops.sculpt.layer.list(*, mesh: MeshRef = ...) -> Result
List the mesh's sculpt layers (bottom first) with their strength, visibility and the color attributes each holds paint for.
Merge Sculpt Layer Down
tb.ops.sculpt.layer.merge_down(*, mesh: MeshRef = ..., layer: int) -> Result
Merge a sculpt layer into the layer below it (the bottom layer merges into the base mesh); the surface does not change.
Move Sculpt Layer
tb.ops.sculpt.layer.move(
*,
mesh: MeshRef = ...,
layer: int,
direction: Literal["up", "down"],
) -> Result
Move a sculpt layer up or down the list.
Delete Sculpt Layer
tb.ops.sculpt.layer.remove(*, mesh: MeshRef = ..., layer: int) -> Result
Delete a sculpt layer and the sculpting and paint on it.
Set Sculpt Layer
tb.ops.sculpt.layer.set(
*,
mesh: MeshRef = ...,
layer: int,
name: str = ...,
strength: float = ...,
visible: bool = ...,
) -> Result
Rename a sculpt layer, change its strength (the layer's displacement is multiplied by it) or show / hide it; the surface follows.
Line Project
tb.ops.sculpt.line_project(
*,
from_: Any,
to: Any,
view: Any,
flip: bool = False,
) -> Result
Flatten everything on one side of a screen line onto the line's plane through the view; masked vertices move less. One session undo step.
Mask by Color
tb.ops.sculpt.mask.by_color(
*,
point: Any = ...,
view: Any = ...,
x: float = ...,
y: float = ...,
color: Any = ...,
threshold: float = 0.35,
contiguous: bool = False,
invert: bool = False,
preserve: bool = False,
) -> Result
Mask the vertices whose painted color is close to a color (given, or sampled at a point / screen position): within threshold fully, fading over the next 10 %.
Clear Mask
tb.ops.sculpt.mask.clear() -> Result
Unmask everything.
Expand Mask
tb.ops.sculpt.mask.expand(
*,
point: Any = ...,
vertex: int = ...,
falloff: Literal["geodesic", "topology", "normals", "sphere"] = "geodesic",
amount: float = ...,
distance: float = ...,
target: Literal["mask", "face-set"] = "mask",
invert: bool = False,
gradient: bool = False,
preserve: bool = False,
) -> Result
Grow a mask (or a new face set) across the surface from a point, by geodesic distance, edge steps, normal angle or straight distance, up to a threshold; one undo step.
Fill Mask
tb.ops.sculpt.mask.fill(*, value: float = 1.0) -> Result
Mask every visible vertex with a value.
Mask Filter
tb.ops.sculpt.mask.filter(
*,
filter: Literal["smooth", "sharpen", "grow", "shrink", "contrast-increase", "contrast-decrease"],
iterations: int = 1,
) -> Result
Smooth, sharpen, grow, shrink or change the contrast of the mask.
Mask from Layer
tb.ops.sculpt.mask.from_layer(
*,
layer: int,
channel: Literal["sculpt", "paint"] = "sculpt",
invert: bool = False,
preserve: bool = False,
) -> Result
Mask where a sculpt layer changed the surface: by its sculpting (displacement length) or its paint (color change), the strongest vertex fully, fading with the amount.
Box / Lasso Mask
tb.ops.sculpt.mask.gesture(
*,
polygon: Any,
view: Any,
mode: Literal["set", "add", "subtract"] = "set",
value: float = 1.0,
front_faces_only: bool = False,
) -> Result
Mask (or unmask) the vertices inside a screen polygon.
Get Mask
tb.ops.sculpt.mask.get() -> Result
The mask per vertex.
Invert Mask
tb.ops.sculpt.mask.invert() -> Result
Masked becomes unmasked and the other way round.
Set Mask
tb.ops.sculpt.mask.set(*, values: Any) -> Result
Replace the mask (one value 0–1 per vertex).
Mask Slice
tb.ops.sculpt.mask.slice(
*,
meshes: Sequence[MeshRef] = ...,
threshold: float = 0.5,
fill: bool = True,
keep: bool = False,
) -> Result
Remove the masked part of the surface: fill closes the holes; keep makes the removed part a new object. One undo step.
Redo Sculpt Step
tb.ops.sculpt.redo() -> Result
Redo the next stroke or sculpt edit of the session.
Sculpt Status
tb.ops.sculpt.status() -> Result
Whether sculpt mode is on, the mesh, its size, the session undo steps and the last stroke's counters.
Sculpt Stroke
tb.ops.sculpt.stroke(
*,
brush: str = ...,
samples: Any = ...,
view: Any = ...,
points: Any = ...,
radius: float = ...,
view_direction: Vec3Like = ...,
sub: bool = False,
smooth: bool = False,
seed: int = ...,
) -> Result
Replay a stroke through the shared brush engine. Either screen samples plus a view, or mesh-space points (the stroke is seen along viewDirection, default against the surface normal under the first point).
Symmetrize
tb.ops.sculpt.symmetrize(
*,
direction: Literal["+x", "-x", "+y", "-y", "+z", "-z"] = "+x",
) -> Result
Copy one side of the mesh onto the other (matching mirrored vertices).
Sculpt Symmetry
tb.ops.sculpt.symmetry.set(
*,
x: bool = ...,
y: bool = ...,
z: bool = ...,
world: bool = ...,
radial_x: int = ...,
radial_y: int = ...,
radial_z: int = ...,
) -> Result
Mirror axes (object space unless world) and radial copies per axis.
Trim
tb.ops.sculpt.trim(
*,
meshes: Sequence[MeshRef] = ...,
polygon: Any,
view: Any,
mode: Literal["difference", "union", "join"] = "difference",
split: bool = False,
label: str = "Trim",
) -> Result
Cut away everything a screen box, lasso or polyline covers, straight through the model along the view, and close the cut with flat caps (a difference cut); with split the cut part becomes a new object, also closed (Nomad Split). Union adds the shape extruded through the model's depth as one closed surface; Join adds it as a separate part of the same mesh. New cut vertices and corners interpolate UVs, colors, mask, weights and blendshape targets; the caps get a new face set. One undo step.
Undo Sculpt Step
tb.ops.sculpt.undo() -> Result
Undo the last stroke or sculpt edit of the session.