This command returns the type of UI element such as button, sliders, etc.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
isType (i) | unicode | ||
|
|||
listAll (la) | bool | ||
Returns a list of all known UI commands and their respective types. Each entry contains three strings which are the command name, ui type and class name. Note that the class name is internal and is subject to change. |
|||
superClasses (sc) | bool | ||
Returns a list of the names of all super classes for the given object. Note that all class names are internal and are subject to change.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
Derived from mel command maya.cmds.objectTypeUI
Example:
import pymel.core as pm
print(pm.objectTypeUI( 'viewPanes' ))
# show all commands as their types
import sys
for c,e in enumerate(pm.objectTypeUI(listAll=True)):
c += 1
sys.stdout.write(e + " ")
if c % 3 == 0:
sys.stdout.write('\n')
# show Qt inheritence hierachy for buttons
pm.window()
pm.rowColumnLayout()
b = pm.button()
pm.showWindow()
print(pm.objectTypeUI(b,sc=True))