Author: Jeremy Ernst
This class is used to list influences in or out of the current skinCluster, and then remove or add said influences given current selection.
- It is called from this button, found after finalizing your setup:
- This is what the full interface looks like:
Instantiates the class, taking in the instance of the rig creator skin tools interface. Get settings values from QSettings. Build the interface.
Parameters: mainUI – Instance of the skin tools interface.
Regenerate the lists comparing all joints of the rig to joints in the skin cluster and joints not in the skinCluster. Clear the listWidgets and refresh with new data.
Hides all items in the QListWidget, then compares the QLineEdit search text with each item in the QListWidget, and if the search text is found in the text of an item, show that QListWidgetItem.
Change what is displayed in the QListWidget based on the QComboBox setting of which joints to show: those in the skinCluster, or those not in the skinCluster.
Either add, or remove, selected influences from the QListWidget to/from the skinCluster. (the main function)
- add – Whether or not to add or remove.
- removeUnused – If this flag is set, remove any unweighted influences in the skinCluster.
Calls on Maya’s built in prune skin weights tool.
Builds the interface for the tool, finding all joints that compose the asset, comparing them to joints in the skinCluster, then separating the initial list into joints in the cluster, and joints not in the cluster.