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:
Methods:
MnsPLGSettingsUI methods
clearScript [MnsPLGSettingsUI class method]
'Clear' (ActionScript) button trigger.
Constructor: | clearScript(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
'Clear' (Controls Select) button trigger.
Constructor: | clearControls(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
'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: |
|
Optional Arguments: |
'Run Script' button trigger.
Constructor: | runScript(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
A simple method to acquire a 'Picker' UI from global if exists.
This is done to manipultae a live picker in turn, instead of needing to refresh the picker.
Constructor: | acquirePickerWin(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
Acquire the related button to plg from a picker UI, if it exists.
Constructor: | acquireRelatedButtonForPlg(self, plg) |
Return: | None |
Arguments: |
|
Optional Arguments: |
Add current scene selection into the controls to select list.
Constructor: | addSceneSelectedControls(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
Button 'controls select' update requested trigger.
Constructor: | updateControlsSelect(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
Button Action-script update requested trigger.
Constructor: | updateActionScript(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
Button color update requested trigger.
Constructor: | updateButtonColor(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
Button group update requested trigger.
Constructor: | updateCtrlGroup(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
Button pre checkbox update requested trigger.
Constructor: | updatePre(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
Button scale update requested trigger.
Constructor: | updateScale(self, size, kwargs) |
Return: | None |
Arguments: |
|
Optional Arguments: |
Button side update requested trigger.
Constructor: | updateSide(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
Button text update requested trigger.
Constructor: | updateButtonText(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
Button text-color update requested trigger.
Constructor: | updateButtonTextColor(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
Button text-font update requested trigger.
Constructor: | updateButtonFont(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
Button text-size update requested trigger.
Constructor: | updateButtonFontSize(self, size) |
Return: | None |
Arguments: |
|
Optional Arguments: |
Connect all UI signals.
Constructor: | connectSignals(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
In case a picker window is aquired, call it's 'refresh' method.
Constructor: | refreshPickerWindow(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
Initialize view:
- Set title
- Set Icons
- Initialize sides comboBox
Constructor: | initView(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
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: |
|
Optional Arguments: |
Remove current selection from the controls list.
Constructor: | removeSceneSelectedControls(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
Replace current 'controls list' with the current scene selection.
Constructor: | replaceControls(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
Select current controls list btn trigger.
Constructor: | selectControls(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
Show windoe method.
Constructor: | loadWindow(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
This method clears all setting from the UI, and restores 'empty' state.
Constructor: | clearView(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
Defenitions
loadPlgSettings
Load the PLG Settings UI from globals, avoid UI duplication.
Constructor: loadPlgSettings() Return: None Arguments:
Keyword Arguments: