You seem to be importing the python version 2.0 api, but are using methods as 
if they're from version 1.0

for 2.0, it would be

dag = sel.getDagPath(0)

for version 1.0, you would write it like you have it, but you need to be 
importing maya.OpenMaya  not maya.api.OpenMaya

hope that helps.

-- 
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/178cf873-a67a-4c2b-a588-87529d4e777f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to