Hi,
I'm trying to add a line that error checks for whether the getShape()
method exists for selected objects, by using *hasAttr*, but it keeps
returning *false* even when getShape() exists for the obj:
import maya.cmds as cmd
import pymel.core as pm
list = cmd.ls(sl=True)
for obj in list:
obj = pm.PyNode(obj)
print pm.hasAttr(obj,'getShape')
Any ideas??
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/0abb0814-ff47-42a9-9464-5ce2f856dbee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.