This command returns the names of UI objects.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
cmdTemplates (ct) | bool | ||
|
|||
collection (col) | bool | ||
|
|||
contexts (ctx) | bool | ||
|
|||
controlLayouts (cl) | bool | ||
|
|||
controls (ctl) | bool | ||
|
|||
dumpWidgets (dw) | bool | ||
|
|||
editors (ed) | bool | ||
|
|||
head (hd) | int | ||
The parameter specifies the maximum number of elements to be returned from the beginning of the list of items. (Note: each flag will return at most this many items so if multiple flags are specified then the number of items returned will be greater than the value specified). |
|||
long (l) | bool | ||
|
|||
menuItems (mi) | bool | ||
|
|||
menus (m) | bool | ||
|
|||
numWidgets (nw) | bool | ||
|
|||
panels (p) | bool | ||
|
|||
radioMenuItemCollections (rmc) | bool | ||
|
|||
tail (tl) | int | ||
The parameter specifies the maximum number of elements to be returned from the end of the list of items. (Note: each flag will return at most this many items so if multiple flags are specified then the number of items returned will be greater than the value specified). |
|||
type (typ) | unicode | ||
|
|||
windows (wnd) | bool | ||
|
Derived from mel command maya.cmds.lsUI
Example:
import pymel.core as pm
# List all windows.
#
pm.lsUI( windows=True )
# Result: [ui.Window('MayaWindow'), ui.Window('scriptEditorPanel1Window')] #
# List all panels and editors.
#
pm.lsUI( panels=True, editors=True )
# Use the -typ/type flag to list all controls and control layouts.
# Alternatively, you could use the -ctl/controls and -cl/controlLayouts
# flags.
#
pm.lsUI( type=['control','controlLayout'] )
# Or...
#
pm.lsUI( controls=True, controlLayouts=True )