Message 1 of 4
Problem Confirming Mesh Type
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Working in Maya 2022. This python code is not printing "mesh".
I don't get an error message either, just the repeated code. ???
Is it a spacing issue ?
def currentSelection(obj):
obj = cmds.ls(selection = True)
shapeNode = cmds.listRelatives(obj, shapes = True)
nodeType = cmds.nodeType(shapeNode)
if nodeType == "mesh":
print("mesh")