Add Skin Layer
tb.ops.skincluster.add_layer(
*,
mesh: MeshRef = ...,
name: str,
mode: Literal["replace"] = "replace",
) -> Result
Add an empty skin layer on top of a mesh's stack and paint it next. A layer's joint weights are its own blend: on each vertex they sum to at most 1 and replace that share of everything below (0 shows what is below, 1 replaces it). Painting a layer never changes the base or the layers below; exports merge the stack into one skin cluster. One undo step.
Apply Computed Weights
tb.ops.skincluster.apply_staged(*, tokens: Any) -> Result
Apply weights computed by a background job or a Weight Paint stroke (one undo step). Refused when the mesh changed since the weights were computed.
Bind Skin
tb.ops.skincluster.bind(
*,
meshes: Sequence[MeshRef] = ...,
joints: Any = ...,
method: Literal["rigid", "geodesic", "closest_joint", "surface_grid"] = "rigid",
replace_existing: bool = False,
max_influences: int = 4,
) -> Result
Bind meshes to the skeleton. Rigid: each mesh follows one joint — the named one or the joint nearest its center. Geodesic Voxel / Closest Joint: smooth automatic weights over every joint. Surface Chains Grid: cloth on a Skirt or Cape grid, each vertex on the four joints of the grid quad it lies on (bilinear), the weights the skirt's leg collision keeps out of the legs. Creates the skin every other weight tool needs; one undo step (with the cloth depth a Surface Chains Grid bind measures). Bind again with replaceExisting to change it.
Compute Weights
tb.ops.skincluster.compute_weights(
*,
meshes: Sequence[MeshRef] = ...,
method: Literal["geodesic", "skincells", "closest_joint"] = "geodesic",
quality: Literal["fast", "standard", "best"] = "best",
max_influences: int = 4,
resolution: int = 256,
falloff: float = 0.5,
smooth_iterations: int = 8,
skip_outside_joints: bool = True,
mirror_after: bool = False,
iterations: int = 300,
) -> Result
Compute automatic skin weights at the bind pose. Geodesic Voxel (recommended) measures distances through the body, so legs, tail and ears never bleed into each other; it handles open, multi-shell and non-manifold meshes. SkinCells fits a compact weight field over random poses. Closest Joint is a simple inverse-distance method. Meshes computed together share one body. Large meshes: run tb_api::skin::ComputeWeightsJob in the background and apply its result with skincluster.apply_staged.
Limit Influences
tb.ops.skincluster.enforce_max_influences(
*,
meshes: Sequence[MeshRef] = ...,
max_influences: int = 4,
) -> Result
Keep at most N influences per vertex (the strongest), renormalized.
Inspect Skin Weights File
tb.ops.skincluster.inspect_weights_file(*, data: Any) -> Result
What loading a skin-weight file would do, without loading it: per file mesh its vertex count, UVs, the scene mesh it matches by name, and each joint's share of the weight with the bone it maps to (null when no bone matches). The Load Skin Weights dialog shows this.
Load Skin Weights
tb.ops.skincluster.load_weights(
*,
data: Any,
mapping: Literal["auto", "vertex", "position", "uv"] = "auto",
max_influences: int = 4,
targets: Any = ...,
joint_map: Any = ...,
) -> Result
Load a skin-weight JSON file onto meshes: file meshes match by name, joints by name (also case-insensitive and namespace-stripped), vertices by order when the counts match, else by nearest bind position. Meshes without a skin get one.
Mirror Weights
tb.ops.skincluster.mirror_weights(
*,
mesh: MeshRef = ...,
direction: Literal["left_to_right", "right_to_left"] = "left_to_right",
axis: Literal["x", "y", "z"] = "x",
) -> Result
Mirror skin weights from one side to the other across an axis (vertices paired by position, joints by left / right names).
Normalize Weights
tb.ops.skincluster.normalize(*, meshes: Sequence[MeshRef] = ...) -> Result
Rescale every vertex's weights to sum to 1.
Prune Weights
tb.ops.skincluster.prune(
*,
mesh: MeshRef = ...,
threshold: float = 0.01,
vertices: Any = ...,
) -> Result
Remove weights below a threshold and renormalise (a vertex never loses its last influence).
Relax Weights
tb.ops.skincluster.relax(
*,
mesh: MeshRef = ...,
strength: float = 0.5,
iterations: int = 3,
max_influences: int = 4,
vertices: Any = ...,
locked: Any = ...,
) -> Result
Smooth weights on vertices toward their neighbours (ngSkinTools-style: blends by influence, neighbours are read, not written); locked joints keep their weights.
Remove Skin Layer
tb.ops.skincluster.remove_layer(*, mesh: MeshRef = ..., layer: str) -> Result
Remove a skin layer and its weights (the base and the other layers stay). One undo step.
Rigidify Weights
tb.ops.skincluster.rigidify(
*,
mesh: MeshRef = ...,
strength: float = 0.5,
iterations: int = 1,
max_influences: int = 4,
vertices: Any = ...,
locked: Any = ...,
) -> Result
Push weights toward 0 / 1: the dominant influence moves toward 1 and the others toward 0 by Strength per iteration (armour, buckles, buttons). Locked joints keep their weights.
Save Skin Weights
tb.ops.skincluster.save_weights(
*,
meshes: Sequence[MeshRef] = ...,
file_name: str = ...,
) -> Result
Write the skin weights of meshes to a skin-weight JSON file (joint names, weights, bind positions, UVs): the result's 'data' is the file content.
Select Affected Vertices
tb.ops.skincluster.select_affected(
*,
mesh: MeshRef = ...,
influence: str,
threshold: float = 0.0,
) -> Result
Select the vertices a joint influences (weight above the threshold); switches to vertex selection.
Skin Layer Settings
tb.ops.skincluster.set_layer(
*,
mesh: MeshRef = ...,
layer: str,
rename: str = ...,
mode: Literal["replace"] = ...,
view: Literal["show", "hide", "solo"] = ...,
index: int = ...,
) -> Result
Change a skin layer: rename it, its mode (replace), its view (show; hide to compare with what is below; solo to see it alone over the base) or its place in the stack (index 0 = just above the base). One undo step.
Skinning Method
tb.ops.skincluster.set_method(
*,
meshes: Sequence[MeshRef] = ...,
method: Literal["linear", "dualQuaternion"],
) -> Result
How the joints blend: Linear, or Dual Quaternion (keeps volume where joints twist and bend).
Paint Layer
tb.ops.skincluster.set_paint_layer(*, mesh: MeshRef = ..., layer: str = ...) -> Result
What Weight Paint and the weight tools (set, smooth, prune, mirror, normalize, compute) edit on a mesh: the base weights (layer left out or "base") or one skin layer. On a layer the brush paints its joint weights freely, capped to 1 per vertex. One undo step.
Set Weight
tb.ops.skincluster.set_weight(
*,
mesh: MeshRef = ...,
influence: str,
weight: float,
operation: Literal["replace", "add", "subtract", "scale", "erase"] = "replace",
strength: float = 1.0,
min: float = 0.0,
max: float = 1.0,
max_influences: int = 4,
vertices: Any = ...,
locked: Any = ...,
) -> Result
Set an exact weight for one joint on vertices; the other unlocked influences share the rest proportionally (a sole influence keeps 1.0 — weights stay normalized).
Transfer Weights
tb.ops.skincluster.transfer_weights(
*,
sources: Sequence[MeshRef] = ...,
targets: Sequence[MeshRef] = ...,
method: Literal["robust", "nearest", "topology", "skincells", "position_falloff", "uv_falloff", "closest_joint"] = "robust",
max_influences: int = 4,
distance_ratio: float = 0.05,
max_angle: float = 30.0,
allow_flipped_normals: bool = False,
inpaint: Literal["biharmonic", "harmonic"] = "biharmonic",
smooth_iterations: int = 10,
rigid_accessories: bool = False,
accessory_size: float = 0.12,
rigid_props: bool = True,
unmatched_shells: Literal["nearest", "rigid"] = "nearest",
far_field: bool = False,
max_distance: float = 0.2,
falloff_distance: float = 0.1,
iterations: int = 300,
) -> Result
Transfer skin weights from skinned source meshes onto target meshes (which need not be skinned yet). Robust (recommended) matches each target vertex to the source surface it lies on — by distance and normal — and fills the rest smoothly, so open meshes, separate parts, layered clothing and LoDs transfer cleanly; it records a per-vertex confidence for the viewport. Nearest copies the closest surface everywhere; SkinCells fits a weight field; the falloff modes blend into the existing weights with a distance falloff.
Transfer Weights from Active Mesh
tb.ops.skincluster.transfer_weights_from_selected(
*,
method: Literal["robust", "nearest", "topology", "skincells", "position_falloff", "uv_falloff", "closest_joint"] = "robust",
max_influences: int = 4,
distance_ratio: float = 0.05,
max_angle: float = 30.0,
allow_flipped_normals: bool = False,
inpaint: Literal["biharmonic", "harmonic"] = "biharmonic",
smooth_iterations: int = 10,
rigid_accessories: bool = False,
accessory_size: float = 0.12,
rigid_props: bool = True,
unmatched_shells: Literal["nearest", "rigid"] = "nearest",
far_field: bool = False,
max_distance: float = 0.2,
falloff_distance: float = 0.1,
iterations: int = 300,
) -> Result
Transfer weights from the active (skinned) mesh to every other skinned mesh.
Transfer Weights to Active Mesh
tb.ops.skincluster.transfer_weights_to_selected(
*,
method: Literal["robust", "nearest", "topology", "skincells", "position_falloff", "uv_falloff", "closest_joint"] = "robust",
max_influences: int = 4,
distance_ratio: float = 0.05,
max_angle: float = 30.0,
allow_flipped_normals: bool = False,
inpaint: Literal["biharmonic", "harmonic"] = "biharmonic",
smooth_iterations: int = 10,
rigid_accessories: bool = False,
accessory_size: float = 0.12,
rigid_props: bool = True,
unmatched_shells: Literal["nearest", "rigid"] = "nearest",
far_field: bool = False,
max_distance: float = 0.2,
falloff_distance: float = 0.1,
iterations: int = 300,
) -> Result
Transfer weights from every other skinned mesh to the active mesh.