Maya: Node types


Node types (Autodesk Knowledge Network)

  • Shape nodes:

import maya.cmds as mc;
mc.spaceLocator(); # Creating a locator
mc.circle(); # Creating a nurbsCurve circle
mc.sphere(); # Creating a nurbsSurface sphere
mc.polySphere(); # Creating a polygon sphere
shapenodes= mc.ls(type="shape");
for item in shapenodes:
    print item + " : " + mc.nodeType(item);

#Outputs:
frontShape : camera
locatorShape1 : locator
nurbsCircleShape1 : nurbsCurve
nurbsSphereShape1 : nurbsSurface
pSphereShape1 : mesh
perspShape : camera
sideShape : camera
topShape : camera

Comments

Popular posts from this blog

HIK: Getting current character and current source.