rjSkinningTools.paintRemoveInfluenceCtx package

Module contents

Remove a specific influence on vertices with the paint tool.

https://github.com/robertjoosten/rjSkinningTools/raw/master/paintRemoveInfluenceCtx/README.png

Link to Video

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

Code

rjSkinningTools.paintRemoveInfluenceCtx.loadPlugin()

When this script is imported the following code will make sure the accompanying plugin is loaded that registers the commands used by the context.

rjSkinningTools.paintRemoveInfluenceCtx.paint(mesh, influence)

Initialize the remove influence context. Once this command is run the context will be set as the active tool.

Parameters:
  • mesh (str) –
  • influence (str) –