Go to: Synopsis. Return value. Flags. Python examples.

Synopsis

objectTypeUI( string , [isType=string])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

objectTypeUI is undoable, NOT queryable, and NOT editable.

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

Return value

stringThe type of the specified object.

Flags

isType
Long name (short name) Argument types Properties
isType(i) string create
Returns true|false if the object is of the specified type.

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.

Python examples

import maya.cmds as cmds

cmds.objectTypeUI( 'viewPanes' )