FFS I don't know why it did not work the first time but yes that did it.
Thanks so much!!!
dagObject = cmds.ls( selection=True, objectsOnly=True)
On Tue, Sep 20, 2016 at 1:45 PM, Marcus Ottosson <konstrukt...@gmail.com>
> Hm, that should work. Here’s an example that works for me in Maya 2016.
> cmds.file(new=True, force=True)
> dag_object = cmds.ls(sl=True, objectsOnly=True)
> You received this message because you are subscribed to a topic in the
> Google Groups "Python Programming for Autodesk Maya" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> To unsubscribe from this group and all its topics, send an email to
> To view this discussion on the web visit https://groups.google.com/d/
> For more options, visit https://groups.google.com/d/optout.
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.