SkinningTools.UI.tabs.vertAndBoneFunction
¶
Module Contents¶
Classes¶
the widget that holds all custom single button / buttongroup functions for authoring in the dcc tools |
Functions¶
|
test the current UI without the need of all the extra functionality |
-
SkinningTools.UI.tabs.vertAndBoneFunction.
_DEBUG
¶
-
SkinningTools.UI.tabs.vertAndBoneFunction.
_DIR
¶
-
class
SkinningTools.UI.tabs.vertAndBoneFunction.
VertAndBoneFunction
(inGraph=None, inProgressBar=None, parent=None)¶ the widget that holds all custom single button / buttongroup functions for authoring in the dcc tools
-
checkValues
¶
-
favSettings
¶
-
toolName
= VertAndBoneFunction¶
-
_AvgWght_func
(self, sender)¶ average weight connection function using the extra attributes
- Parameters
sender (QPushButton) – button object on which the checkbox is attached
-
__addVertNBoneFunc
(self)¶ here we will create and modify all the seperate buttons that work with the dcc tool
-
__favTools
(self)¶ favourite tools button, this button will allow the user to choose their favourite tools and display them
-
_bindFix_func
(self, sender, *args)¶ fix the bind map connection function using the extra attributes
- Parameters
sender (QPushButton) – button object on which the checkbox is attached
-
_clearLayout
(self)¶ make sure that the buttons are unparented but not destroyed
-
_connections
(self)¶ signal connections
-
_convertStyleSheet
(self, inStyleSheet)¶ stylesheet change for display if the object is being selected
-
_convertToJoint_func
(self, sender)¶ convert selection to joint connection function using the extra attributes
- Parameters
sender (QPushButton) – button object on which the checkbox is attached
-
_cutMesh_func
(self, sender)¶ cut mesh by influences connection function using the extra attributes
- Parameters
sender (QPushButton) – button object on which the checkbox is attached
-
_delBone_func
(self, sender)¶ delete bone connection function using the extra attributes
- Parameters
sender (QPushButton) – button object on which the checkbox is attached
-
_growsel_func
(self, *args)¶ grow the current selection
-
_nghbors_func
(self, sender)¶ neighbours smoothing connection function using the extra attributes
- Parameters
sender (QPushButton) – button object on which the checkbox is attached
-
_pruneOption
(self, btn, value)¶
-
_pruneSel_func
(self, sender)¶ prune influences connection function using the extra attributes
- Parameters
sender (QPushButton) – button object on which the checkbox is attached
-
_setBtnLayout
(self)¶ populate the current widget with all objects
-
_setFavLayout
(self)¶ repopulate the current widget with only buttons that are assigned as favourite
-
_shrinks_func
(self, *args)¶ shrink the current selection
-
_smoothBrs_func
(self, sender, *args)¶ smooth brush connection function using the extra attributes
- Parameters
sender (QPushButton) – button object on which the checkbox is attached
-
_storesel_func
(self, *args)¶ store the current component selection and alter the connected buttons
-
_trsfrSK_func
(self, sender, inPlace)¶ transfer skin connection function using the extra attributes
- Parameters
sender (QPushButton) – button object on which the checkbox is attached
inPlace (bool) – differentiates between skin and pose functionality
-
_unifyBn_func
(self, sender)¶ unify influence map connection function using the extra attributes
- Parameters
sender (QPushButton) – button object on which the checkbox is attached
-
_updateBrush_func
(self, sender, *args)¶ update smooth brush connection function using the extra attributes
- Parameters
sender (QPushButton) – button object on which the checkbox is attached
-
_vtexMax_func
(self, query)¶ maximum influences per vertex connection function using the extra attributes
- Parameters
query (bool) – if True will return the vertices, if False sets the max influences
-
active
(self, *_)¶ the settings to actively assign the favourite toolsets
-
changeLayout
(self, *_)¶ change layout function based on the state of the favourit settings
-
doTranslate
(self)¶ seperate function that calls upon the translate widget to help create a new language we use the english language to translate from to make sure that translation doesnt get lost
-
eventFilter
(self, obj, event)¶ event filter, this event filter listens to the mouse events on certain buttons to figure out if they can be chosen as favourite the event filter will display the current elements and groups as favourite when possible
-
filter
(self, *_)¶ install the eventfilter for assigning fouvourite settings
-
getButtonSetup
(self, btn)¶ convenience function to figure out which buttons are connected to the layout this will check for layouts
- Parameters
btn (QWidget) – the widget with seperate attribute to check if its part of a group
- Returns
list of attached objects
- Return type
list
-
getButtonText
(self)¶ convenience function to get the current items that need new locale text
-
getCheckValues
(self)¶ get the values fo all checkable attributes in the current tool
- Returns
list of all checked values
- Return type
list
-
getFavSettings
(self)¶ get the current settings on which elements are targeted as favourite
- Returns
list of all elements that are set as favourite
- Return type
list
-
getGroup
(self, inBtn)¶ convenience function to figure out which layouts the buttons are connected to
- Parameters
btn (QWidget) – the widget with seperate attribute to check if its part of a group
- Returns
the layout the objects are attached to
- Return type
QLayout
-
getGroupedLayout
(self, inBtn)¶ convenience function to figure out which buttons are connected to the layout
- Parameters
btn (QWidget) – the widget with seperate attribute to check if its part of a group
- Returns
list of attached objects
- Return type
list
-
setCheckValues
(self, values)¶ set the values of the buttons to be checked based on the given settings
- Parameters
values (list) – list of values from settings to set the checked state of button attributes
-
setFavSettings
(self, inSettings)¶ set the favourite objects from given settings
- Parameters
inSettings (list) – list of elements that are set as favourite
-
showTools
(self)¶ switch function to show or hide elements
-
translate
(self, localeDict={})¶ translate the ui based on given dictionary
- Parameters
localeDict (dict) – the dictionary holding information on how to translate the ui
-
-
SkinningTools.UI.tabs.vertAndBoneFunction.
testUI
()¶ test the current UI without the need of all the extra functionality