Skip to content

modulePresetEditor


=== Author: Assaf Ben Zur ===

This tool was designed to manage module presets.

As Mansur-Rig modules comatin many attrbiutes, it is sometimes more convenient to use a predefined preset to speed up the wrokflow.

Mansur-Rig includes some module presets, although this was designed mainly to allow usesrs to create their own presets, essentially saving the module settings' state.



Classes


ExportPresetDialog [Class]

Constructor: ExportPresetDialog(parent(str) ; [default: None])
Inherits from: QtWidgets.QDialog
Class Members:
    • buttonBox
    • layout
    • author_le
    • description_te
Methods:

ExportPresetDialog methods


getInfo [ExportPresetDialog class method]

Constructor: getInfo(self)
Return: None
Arguments:
  • self
Optional Arguments:


MnsModulePresetEditor [Class]

Module preset Tool UI Class.


Constructor: MnsModulePresetEditor(parent(str) ; [default: mnsUIUtils.get_maya_window()])
Inherits from: form_class, base_class
Class Members:
    • rigTop
    • mnsModulePresetsDir
    • settingsWindowDynUI
    • moduleType
    • presetsDict
    • currentPreset
Methods:

MnsModulePresetEditor methods


connectSignals [MnsModulePresetEditor class method]


Connect all UI Signals.

Constructor: connectSignals(self)
Return: None
Arguments:
  • self
Optional Arguments:

exportPreset [MnsModulePresetEditor class method]


Export current settings window state as a preset.

Constructor: exportPreset(self)
Return: None
Arguments:
  • self
Optional Arguments:

gatherAdditionalModulePresetsPaths [MnsModulePresetEditor class method]


Initialize any custom module presets paths that already exist within the data collect json.

Constructor: gatherAdditionalModulePresetsPaths(self, **kwargs)
Return: None
Arguments:
  • self
  • **kwargs
Optional Arguments:

importPreset [MnsModulePresetEditor class method]


Import a preset from file

Constructor: importPreset(self)
Return: None
Arguments:
  • self
Optional Arguments:

initializeView [MnsModulePresetEditor class method]


initialize data into the UI

Constructor: initializeView(self, selection = None)
Return: None
Arguments:
  • self
  • selection(str) ; [default: None]
Optional Arguments:

initlizeUI [MnsModulePresetEditor class method]


Initialize the UI display

Constructor: initlizeUI(self)
Return: None
Arguments:
  • self
Optional Arguments:

loadPreset [MnsModulePresetEditor class method]


Apply the selected preset onto the settings window

Constructor: loadPreset(self, **kwargs)
Return: None
Arguments:
  • self
  • **kwargs
Optional Arguments:

loadWindow [MnsModulePresetEditor class method]


Show window method.

Constructor: loadWindow(self)
Return: None
Arguments:
  • self
Optional Arguments:

readCurrentModuleValues [MnsModulePresetEditor class method]


From the current preset, read the current UI state.

This method will return a formatted data assembly of all values and fields within the module-settings tab

Constructor: readCurrentModuleValues(self)
Return: None
Arguments:
  • self
Optional Arguments:

readPreset [MnsModulePresetEditor class method]


Read the curretly selected preset

Constructor: readPreset(self)
Return: None
Arguments:
  • self
Optional Arguments:

readPresetFile [MnsModulePresetEditor class method]


Read a preset from the selected file input

Constructor: readPresetFile(self, filePath = "")
Return: None
Arguments:
  • self
  • filePath(str) ; [default: ""]
Optional Arguments:


Defenitions


loadModulePresetEditor

Load the module preset window, avoid UI duplication.


Constructor: loadModulePresetEditor(parent=mnsUIUtils.get_maya_window())
Return: None
Arguments:
  • parent(str) ; [default: mnsUIUtils.get_maya_window()]
Keyword Arguments: