Blog

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 = cmds.ls(selection = True)
  3. objectType = cmds.objectType(selectedObject)
  4. print(objectType)
0
  Related Posts

You must be logged in to post a comment.