SkinningTools.UI.tabs.softSelectUI

Module Contents

Classes

AddInfluenceWidget

Widget used to add influences. Will emit the ‘addInfluence’ signal when

FillerInfluenceWidget

Widget used to set the filler influence.

InfluenceWidget

Widget used to set the influence and soft selection. Once a new soft

SoftSelectionToWeightsWidget

Widget used to manage all of the added influences and their soft selection.

Functions

testUI()

test the current UI without the need of all the extra functionality

class SkinningTools.UI.tabs.softSelectUI.AddInfluenceWidget(parent)

Widget used to add influences. Will emit the ‘addInfluence’ signal when the add button is released.

Parameters

parent (QWidget) – the object to attach this ui to

addInfluence
class SkinningTools.UI.tabs.softSelectUI.FillerInfluenceWidget(parent)

Widget used to set the filler influence.

Parameters

parent (QWidget) – the object to attach this ui to

influence
_getInfluence(self)
_setInfluence(self, influence)
contextMenuEvent(self, event)
setInfluenceFromSelection(self)

Get all of the joints in the current selection. If no joints are selected a RuntimeError will be raised and the UI reset.

Raises

RuntimeError – if no joints are selected

class SkinningTools.UI.tabs.softSelectUI.InfluenceWidget(parent=None)

Widget used to set the influence and soft selection. Once a new soft selection is made the ‘setSoftSelection’ signal will be emitted.

Parameters

parent (QWidget) – the object to attach this ui to

influence
setSoftSelection
ssActive
ssData
ssSettings
_SetSsActive(self, value)
_SetSsData(self, value)
_getInfluence(self)
_getSsActive(self)
_getSsData(self)
_getSsSettings(self)
_setInfluence(self, influence)
_setSsSettings(self, value)
contextMenuEvent(self, event)
selectSoftSelection(self)

Set the stored soft selection.

setInfluenceFromSelection(self)

Get all of the joints in the current selection. If no joints are selected a RuntimeError will be raised and the UI reset.

Raises

RuntimeError – if no joints are selected

setSoftSelectionFromSelection(self)

Get the current soft selection. If no soft selection is made a RuntimeError will be raised.

Raises

RuntimeError – if no soft selection is made

class SkinningTools.UI.tabs.softSelectUI.SoftSelectionToWeightsWidget(progressBar=None, parent=None)

Widget used to manage all of the added influences and their soft selection.

Parameters

parent (QWidget) – the object to attach this ui to

toolName = AssignWeightsWidget
addInfluence(self)

Add an new influence widget to the layout, InfluenceWidget.

addLoadingBar(self, loadingBar)
getInfluences(self)

Loop over all of the content of the scroll layout and yield if the item is an instance of InfluenceWidget.

Returns

All influence widgets in the scroll layout

Return type

iterator

setEnableInfluence(self)

This function is called when a soft selection is made. All influences will be checked to see if there is a mesh with no skin cluster attached. If this is the case the filler joint widget FillerInfluenceWidget will be enabled.

skin(self)

This function is called when the skin button is released. All of the influences sorted and the mesh skin weights updated. As this can be a time consuming process a progress bar will be updated with every mesh that gets updated.

SkinningTools.UI.tabs.softSelectUI.testUI()

test the current UI without the need of all the extra functionality