Hm, that should work. Here’s an example that works for me in Maya 2016.
dag_object = cmds.ls(sl=True, objectsOnly=True)
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 view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.