Remove a specific influence on vertices with the paint tool. This tool is part of the rjSkinningTools.

Installation

Copy the rjSkinningTools folder to your Maya scripts directory:

C:\Users\<USER>\Documents\maya\scripts

Usage

Select a skinned object and run the following code:

from rjSkinningTools import paintRemoveInfluenceCtx;
paintRemoveInfluenceCtx.paint(mesh, influence)

Display UI:

import rjSkinningTools.paintRemoveInfluenceCtx.ui;
rjSkinningTools.paintRemoveInfluenceCtx.ui.show()

Note

The paint tool calls a script that will select all the vertices that are influenced by the parsed influence. You can then paint away the influence on those vertices with the paint tool.

  • Undo-able / Redo-able

Based on the settings on the skinCluster the following attribute will be respected while removing the influence weights:

  • Normalize Weights
  • Locked Influences