pymel.core.uitypes.objectTypeUI

objectTypeUI(name, **kwargs)

This command returns the type of UI element such as button, sliders, etc.

Flags:
Long name (short name) Argument Types Properties
isType (i) unicode ../../../_images/create.gif
 
Returns true|false if the object is of the specified type.
listAll (la) bool ../../../_images/create.gif
 

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 ../../../_images/create.gif
 

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))

Previous topic

pymel.core.uitypes.MenuItem

Next topic

pymel.core.uitypes.toQtControl

Core

Core Modules

Other Modules

This Page