SkinningTools.UI.tabs.weightsUI

Module Contents

Classes

WeightsUI

weights manager

Functions

testUI()

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

SkinningTools.UI.tabs.weightsUI._DEBUG
SkinningTools.UI.tabs.weightsUI._DIR
SkinningTools.UI.tabs.weightsUI._LOCALFOLDER
class SkinningTools.UI.tabs.weightsUI.WeightsUI(settings=None, inProgressBar=None, parent=None)

weights manager allows to save skinning information from given objects and to load it onto the same object or even others

toolName = weightUI
__addButtons(self)

simple convenience function to add the buttons to the current ui

_changeMeshInfo(self, curFile, *_)

chagne the information based on the current weight file selection

Parameters

curFile (string) – the weight file to gather data from

_checkJoints(self, joints, sender)

check if the objects joints inputs are similar

Parameters
  • joints (list) – input information on the joints stored on file

  • sender (QPushButton) – the check button used to trigger this function

_checkUvs(self, uvs, currentMesh, sender, checkBox)

check if the object has uvs and if the uvs are similar

Parameters
  • uvs (list) – input information on the uvs stored on file

  • currentMesh (list) – the current objects to check for uvs

  • sender (QPushButton) – the check button used to trigger this function

  • checkBox (QCheckBox) – the checkbox to set if it can be used in stead of positions

_checkVerts(self, verts, currentMesh, sender)

check if the objects vertices are similar

Todo

make sure that the scale values are used

Parameters
  • verts (list) – input information on the verts stored on file

  • currentMesh (string) – the current object to check for verts

  • sender (QPushButton) – the check button used to trigger this function

_getData(self, binary=False, *args)

get the date from the current selection

Parameters

binary (bool) – if True stores the json information as binary to save space, if False stores the data as ascii

_infoTextOptions(self)

seperate text labels to be used for translation

_loadExternalFiles(self)

load external weight files, this can be used to load skinweights files that are not listed from settings. this will add the folder to the settignsfile so it can be found from now, but will not set skinning info

_loadFiles(self, *args)

convenience function to make sure to load files from known location

_makeBB(self, bbox, mesh)

create a cube that uses the infromation of the skinweights file bounding box, to identify possible problems when loading the skincluster information

_savePath(self, binary=False)

save the current information to the default path

Parameters

binary (bool) – if True stores the json information as binary to save space, if False stores the data as ascii

Returns

the path the information is saved to

Return type

string

_scaleBBox(self, inValue)
_setSkinInfo(self)

set the skinning info from current object to selected or multiple :todo: need to make sure this only allows the user to check :todo: or if it actually has a meaningfull relationship to the weights manager

_updateInfo(self, sender, *args)

widget to hold extra information read fromt he current weight file

Parameters

sender (QWidget) – the item object that holds the information on the weight files

clearInfo(self)

clear the current information widget on the selected weights file

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

getButtonText(self)

convenience function to get the current items that need new locale text

hideEvent(self, event)

make sure we don’t have any lingering data

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.weightsUI.testUI()

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