Skip to content

dynUI


=== Author: Assaf Ben Zur ===

Supporting module for the 'defSearch' UI Class.

This module build the base UI for any function UI build called from the defSerach UI.

The build is based on a .ui base file, constructing an empty UI that will accomedate the dynamic UI elemnts requested.

This module also holds the RunCmd. The run command will filter and get any elemnt value based on it's type and recompile an argument string to pass into the function requested.

A template icon is created as well as an empty 'title' item to be changed after creation base on the function name requested.


Classes


MnsDynamicDefUI [Class]

Main UI class


Constructor: MnsDynamicDefUI(defenition,parent(str) ; [default: mnsUIUtils.get_maya_window()],**kwargs)
Inherits from: form_class, base_class
Class Members:
    • funObjectCreation
    • closeOnApplyEnabled
    • readOnly
    • defenition
    • arguments
    • optArguments
    • txtFields
    • attrComponentPairing
    • defenitionName
    • title
    • preDefinedArgs
    • sideCB
    • colOverride
    • rigTop
    • split
    • multiTypeEdit
    • batchEdit
    • splitLayout
    • dividerLayout
    • allCollapsible
    • widgetRelationships
    • rootGuide
    • modArgs
    • mainVLayout
    • customRunCommand
    • fullList
Methods:

MnsDynamicDefUI methods


assembleFeildValues [MnsDynamicDefUI class method]


Assemble all UI values into a list

Constructor: assembleFeildValues(self)
Return: list
Arguments:
  • self
Optional Arguments:

closeEvent [MnsDynamicDefUI class method]

Constructor: closeEvent(self, event)
Return: None
Arguments:
  • self
  • event
Optional Arguments:

destroyUI [MnsDynamicDefUI class method]

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

drawTitle [MnsDynamicDefUI class method]


Title set method.

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

drawUI [MnsDynamicDefUI class method]


Main UI draw method.

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

keyPressEvent [MnsDynamicDefUI class method]

Constructor: keyPressEvent(self, event)
Return: None
Arguments:
  • self
  • event
Optional Arguments:

loadUI [MnsDynamicDefUI class method]


Main UI load.

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

resetToFactory [MnsDynamicDefUI class method]

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

runCmd [MnsDynamicDefUI class method]


Main method run command trigger.

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

setCollapsibleWidgetsBehaviour [MnsDynamicDefUI class method]

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

toggleAllCollapsed [MnsDynamicDefUI class method]

Constructor: toggleAllCollapsed(self, pressedColWid)
Return: None
Arguments:
  • self
  • pressedColWid
Optional Arguments: