Skip to content

plgSettings


=== Author: Assaf Ben Zur ===

mnsPickerSettings UI Class

This is simple UI class built to handle user manipulation to PLG settings easily.

The settings window (at freest state) handles:

  • Color

  • Side

  • Control goruping (body/facial)

  • scaleX, scaleY

  • Button text

  • font size, color

  • font bold, italic, underline

  • controls select

  • Action script (pre/post)



Classes


MnsPLGSettingsUI [Class]

mnsPickerSettings UI Class.


Constructor: MnsPLGSettingsUI(parent(str) ; [default: mnsUIUtils.get_maya_window()])
Inherits from: form_class, base_class
Class Members:
    • currentPlgNode
Methods:

MnsPLGSettingsUI methods


addSceneSelectedControls [MnsPLGSettingsUI class method]


Add current scene selection into the controls to select list.

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

clearControls [MnsPLGSettingsUI class method]


'Clear' (Controls Select) button trigger.

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

clearScript [MnsPLGSettingsUI class method]


'Clear' (ActionScript) button trigger.

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

clearView [MnsPLGSettingsUI class method]


This method clears all setting from the UI, and restores 'empty' state.

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

connectSignals [MnsPLGSettingsUI class method]


Connect all UI signals.

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

createAndLoadPlg [MnsPLGSettingsUI class method]


'Create PLG' button trigger.

A simple wrapper to create a new free plg, then selecting it and loading it into the UI.

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

initView [MnsPLGSettingsUI class method]


Initialize view:

- Set title

- Set Icons

- Initialize sides comboBox

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

loadSelection [MnsPLGSettingsUI class method]


Main UI method- load current selection into the UI.

This method will handle reading, and acquiring all settings into the UI from the selected PLG (only it is a plg type).

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

loadWindow [MnsPLGSettingsUI class method]


Show windoe method.

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

removeSceneSelectedControls [MnsPLGSettingsUI class method]


Remove current selection from the controls list.

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

replaceControls [MnsPLGSettingsUI class method]


Replace current 'controls list' with the current scene selection.

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

runScript [MnsPLGSettingsUI class method]


'Run Script' button trigger.

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

selectControls [MnsPLGSettingsUI class method]


Select current controls list btn trigger.

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

updateActionScript [MnsPLGSettingsUI class method]


Button Action-script update requested trigger.

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

updateButtonColor [MnsPLGSettingsUI class method]


Button color update requested trigger.

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

updateButtonFont [MnsPLGSettingsUI class method]


Button text-font update requested trigger.

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

updateButtonFontSize [MnsPLGSettingsUI class method]


Button text-size update requested trigger.

Constructor: updateButtonFontSize(self, size)
Return: None
Arguments:
  • self
  • size
Optional Arguments:

updateButtonText [MnsPLGSettingsUI class method]


Button text update requested trigger.

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

updateButtonTextColor [MnsPLGSettingsUI class method]


Button text-color update requested trigger.

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

updateControlsSelect [MnsPLGSettingsUI class method]


Button 'controls select' update requested trigger.

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

updateCtrlGroup [MnsPLGSettingsUI class method]


Button group update requested trigger.

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

updatePre [MnsPLGSettingsUI class method]


Button pre checkbox update requested trigger.

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

updateScale [MnsPLGSettingsUI class method]


Button scale update requested trigger.

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

updateSide [MnsPLGSettingsUI class method]


Button side update requested trigger.

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


Defenitions


loadPlgSettings

Load the PLG Settings UI from globals, avoid UI duplication.


Constructor: loadPlgSettings()
Return: None
Arguments:
Keyword Arguments: