This command returns the type of elements. Warning: This command is incomplete and may not be supported by all object types.
Flags:
Long Name / Short Name | Argument Types | Properties | |
---|---|---|---|
convertTag / ct | unicode | ||
isAType / isa | unicode | ![]() |
|
|
|||
isType / i | unicode | ![]() |
|
|
|||
tagFromType / tgt | unicode | ![]() |
|
|
|||
typeFromTag / tpt | int | ![]() |
|
|
|||
typeTag / tt | bool | ![]() |
|
Returns an integer tag that is unique for that object type. Not all object types will have tags. This is the unique 4-byte value that is used to identify nodes of a given type in the binary file format. |
Derived from mel command maya.cmds.objectType
Example:
import pymel.core as pm
# create an object to query type of
pm.sphere( n='sphere1' )
# Result: [nt.Transform(u'sphere1'), nt.MakeNurbSphere(u'makeNurbSphere1')] #
# To query the type of an object:
pm.objectType( 'sphere1Shape' )
# Result: u'nurbsSurface' #
# To confirm that sphere1Shape really is a nurbs surface:
pm.objectType( 'sphere1Shape', isType='nurbsSurface' )
# Result: True #