Get the object type of the selected object, Maya, Python

Posted by:

select and object and run this script to find out the object type of the selected object (according to maya)


  1. import maya.cmds as cmds
  2. selectedObject = = True)
  3. objectType = cmds.objectType(selectedObject)
  4. print(objectType)

About the Author:

I RUN this joint! And I am a digital artist. BFA from the University of Colorado with an emphasis in 3D Animation. I worked in medical animation for some time. I then narrowly escaped with an only partially crushed spirit. Since then I have been expanding my skill set, reaching out into custom coding, game and app development.
  Related Posts

Add a Comment