Skip to content

Weight Tools

nodemode-ai edited this page Nov 25, 2026 · 1 revision

Weight tools

The Weight tools section sits in the paint panel, under the brush tools (see Skin and weights). Every tool is one undo step, never changes a locked joint, and leaves each vertex summing to exactly one. A vertex whose weights are all locked is skipped and counted in the status line.

Choose the vertices

Pick the Mesh, then use Paint, Select or Deselect to brush a selection onto the model (Shift removes). Selected vertices show a white tint. With no selection a tool works on the whole mesh. Clear forgets the selection.

Tools

Tool What it does
Hammer gives the selected vertices the average weights of their unselected neighbours. Rings sets how far to look, Passes repeats it so large selections fill from the border inward
Move weights takes the active joint's weight and gives it to one or more target joints. Pick targets with To (they are listed as chips below it). Amount is the share moved. The split follows what the targets already hold, or is equal if they hold nothing. A locked target receives nothing
Copy and Paste Copy stores the weights of the selected vertices with their positions. Paste mode: One row to all (the first copied row onto every selected vertex), By vertex number, or By position (the nearest vertex). Missing joints decides what happens if a copied joint is not in this skeleton: Stop and report, Drop and renormalise, or Fold into the nearest joint. The copy belongs to the open document: opening, importing or starting a new document empties it, undo does not, and it is not saved in the project
Transfer from mesh copies weights from another mesh onto the Target mesh, by closest point on the surface. See below
Gradient Place two points, then click the start and end on the model. Linear ramps the active joint's weight along the line, Radial around the first point. Value is the weight at the start, Strength mixes with what is there
Invert the active joint's weight becomes one minus itself on the chosen vertices; the other joints give way proportionally
Levels Offset and Gain on the active joint's weight, clamped to 0 to 1
Quantize rounds the active joint's weights (or All joints) to a number of Steps. With all joints the rows are renormalised afterward

Transfer

Use it to move weights from one character onto a re-meshed copy, a new version of the same body, or a different character.

  • Source mesh: a mesh of this document, or Choose another file (a GLB or similar with a skin) and pick the Mesh in file from a list of that file's meshes by name. The list says Choose a file first, Reading the file or No meshes read, marks meshes that are not skinned, preselects the first skinned one and shows the reason under it if the file cannot be read. The file is only read and never opens as the document. Fit to target size scales the source to the target's height before matching.
  • Match by: Closest point (default), Ray cast, Closest vertex or UV space. UV space pairs UV islands first (a mirrored island is detected by its handedness) and uses the 3D distance only to choose among overlapped candidates. On a character whose islands all overlap (Xbot) it helped, with the L1 error against closest point falling from 0.108 to 0.068 on one mesh and 0.182 to 0.152 on the other, but it does not fix overlap. Agents can set uv_islands false for the older pairing.
  • Joints: how the source's joints are matched to this skeleton: Name only, Name, then nearest joint (default), or Nearest bone.
  • Reach (m, 0 is auto) and Normal angle (deg): a target vertex only takes weights from a source point within the reach (auto is 5 percent of the target's size) and facing within the angle (default 35).
  • Fill gaps: vertices that found no match are filled in from their matched neighbours by a harmonic fill. For each connected piece of the target, the Laplace equation is solved with the cotangent weights held non-negative and the matched vertices of that piece as the boundary, so a filled value never leaves the range of the matched values. A piece with no matched vertex takes one rigid row, and a piece with only 1 or 2 matched vertices is reported as low confidence. Agents can ask for the older bi-Laplacian solve with inpaint_mode: paper. Smooth passes (default 3) then smooths only those filled vertices.

The result card shows Matched (the percentage of vertices that found a source), Lowest weight before clamp (a small negative number means the fill had to be corrected), and the Joint map, how each source joint went to a joint here. If Matched is low, raise the reach or the angle, or turn on Fit to target size. A mesh transferred onto itself comes back unchanged. With the harmonic fill the lowest weight before clamp was 0 on all nine re-mesh runs; the older solve went as low as -0.64. Warnings name pieces with fewer than three matched vertices ("low confidence") and, for UV space, target vertices in overlapping islands.

Layers

The Layers panel is described on Skin and weights. Every tool on this page edits the active layer, and rows a tool writes into a layer sum to 1 on the vertices it touches. Partial effect comes from the layer's opacity and mask. If something outside the weights tools rewrites the skin while layers exist (a new bind, an import to the base), the next layers or weights command takes the new weights as the base, keeps the layers on top and warns.

Weight files

The Weight files block has Export weights and Import weights.

Export. Format FormRig weights writes a .frweights.json (format formrig.weights, version 1) with positions, UVs when present, the influence names, the base weights, the blend mask and, with Layers set to Every layer, the whole stack. Floats are written in the shortest form that reads back identically. glTF with weights writes the composite as a GLB. Influences per vertex (1 to 8, default 4) caps the written rows.

Import. Reads a FormRig file, a Maya deformerWeights XML or a Maya JSON. Automatic picks by content.

Option Choices
Match vertices by Vertex number (the default when the counts agree), Position (a grid hash, with Match distance as a fraction of the bounding box diagonal, default 0.001), UV
Match joints by Name, path, namespace (default), Name only, or Joint order
Joints not found Stop and report, Drop them, or Fold into the parent
Weights go to Active layer or base, Base weights, or New layer
Layers in the file Bring them back or Ignore them
Normalise rows are renormalised after the import (on by default)

The result card shows Vertices matched and not matched (the first unmatched numbers are listed), Matched by, Joints matched and not found, Layers brought back, and a note when the blend mask came back too. In the browser the file is uploaded through POST /api/files/store?kind=weights (JSON and XML, 512 MB); without that, type a path.

Measured on Xbot: export then import by vertex number gives a difference of 0.0 (names, order, active layer, composite and mask equal); import by position onto a copy with shuffled vertices matched all 12,473 with a difference of 0.0. The Maya XML reader is a hand written tag scanner; Maya's layout is not published, so it was reconstructed and tested only on a file written to match (maximum difference 7.5e-4 at the file's precision of three decimals). Test it on your own export and report a file that fails. The FormRig binary weight file and barycentric matching are not built.

Limits

  • Gradient points are clicked on the model and sent in screen space, so the ramp follows the camera of the moment you clicked.
  • Weight tools run on every selected mesh at once (the default scope is All meshes) except Copy, which is one mesh.
  • Cross-character transfers (Xbot to Soldier) matched about 22 to 24 percent of vertices; raise the reach or angle first.
  • Interactive normalise cannot lower the only influence of a vertex (unchanged).

For agents

All commands take mesh and, unless noted, vertices (omit for every vertex), respect_locks (default true) and joints by index or name as joint. Each result has the changed count and skipped.

Command Arguments
weights.hammer rings, iterations
weights.move source, targets, amount, split (proportional_to_existing_else_equal, equal)
weights.copy returns rows
weights.paste mode (single_to_all, by_index, by_position), row, position_tolerance, missing_influence (error, drop_renormalize, fold)
weights.transfer source_mesh, target_mesh, source_file, surface_association (closest_point, ray_cast, closest_vertex, uv_space), max_distance (m), max_normal_angle (deg), inpaint, smooth_iterations, influence_association, align (auto, none, fit, joints), per_component, list_unmatched, inpaint_mode (harmonic, paper), uv_islands (default true); returns matched_fraction, min_before_clamp, influence_map, low_confidence_components, component_report, and with UV space uv
weights.source_meshes file (absolute path); returns meshes with index, name, vertices, skinned, in the index order of source_mesh; read only
weights.gradient joint, point_a, point_b, type (linear, radial), value, strength, space (object, screen with a 16 number view)
weights.invert joint, add_weights
weights.levels joint, offset (-1 to 1), gain (0 to 16)
weights.quantize joint (omit for all), steps (2 to 100)
weights.export format (formrig, gltf), layers (evaluated, all), file, max_influences
weights.import file, format (auto, formrig, maya_xml, maya_json), vertex_match (index, position, uv), position_tolerance, joint_match, missing_influence (error, drop, fold_to_parent), normalize, target (active, base, new_layer), mesh; returns matched, unmatched, unmatched_vertices, influences_matched, influences_missing, warnings
layers.list, layers.get read the stack of a mesh, or one layer's mask
layers.create, layers.set, layers.select, layers.reorder, layers.duplicate, layers.delete edit the stack; layer index 0 is the lowest above the base, -1 the base
layers.mask op (paint, flood, invert, clear, from_selection), value, indices, falloff
layers.convert_mask, layers.merge_down, layers.flatten flatten takes keep_layers and respect_locks
layers.evaluate read: row sum error, negative weights, empty rows
dq.get, dq.paint, dq.flood, dq.smooth, dq.gradient, dq.clear the blend mask of a mesh (1 is dual quaternion, 0 linear); dq.paint takes mode (replace, add, subtract, scale)
roundtrip.stamp, roundtrip.inspect, roundtrip.apply the edits returned from Unity or Unreal, see GoF; apply takes method (rows, transfer) and shapes

Clone this wiki locally