Go to: Synopsis. Return value. Flags. Python examples.
lsUI(
[objects]
, [cmdTemplates=boolean], [collection=boolean], [contexts=boolean], [controlLayouts=boolean], [controls=boolean], [dumpWidgets=boolean], [editors=boolean], [head=int], [long=boolean], [menuItems=boolean], [menus=boolean], [numWidgets=boolean], [panels=boolean], [radioMenuItemCollections=boolean], [tail=int], [type=string], [windows=boolean], [workspaceControls=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
lsUI is undoable, NOT queryable, and NOT editable.
This command returns the names of UI objects.string[] | The names of the object arguments. |
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
cmdTemplates(ct)
|
boolean
|
|||
|
||||
collection(col)
|
boolean
|
|||
|
||||
contexts(ctx)
|
boolean
|
|||
|
||||
controlLayouts(cl)
|
boolean
|
|||
|
||||
controls(ctl)
|
boolean
|
|||
|
||||
dumpWidgets(dw)
|
boolean
|
|||
|
||||
editors(ed)
|
boolean
|
|||
|
||||
head(hd)
|
int
|
|||
|
||||
long(l)
|
boolean
|
|||
|
||||
menuItems(mi)
|
boolean
|
|||
|
||||
menus(m)
|
boolean
|
|||
|
||||
numWidgets(nw)
|
boolean
|
|||
|
||||
panels(p)
|
boolean
|
|||
|
||||
radioMenuItemCollections(rmc)
|
boolean
|
|||
|
||||
tail(tl)
|
int
|
|||
|
||||
type(typ)
|
string
|
|||
|
||||
windows(wnd)
|
boolean
|
|||
|
||||
workspaceControls(wc) 2023
|
boolean
|
|||
|
Flag can appear in Create mode of command | Flag can appear in Edit mode of command |
Flag can appear in Query mode of command | Flag can have multiple arguments, passed either as a tuple or a list. |
import maya.cmds as cmds # List all windows. # cmds.lsUI( windows=True ) # List all panels and editors. # cmds.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. # cmds.lsUI( type=['control','controlLayout'] ) # Or... # cmds.lsUI( controls=True, controlLayouts=True )