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)
cmds.select(dagObject)

On Tue, Sep 20, 2016 at 1:45 PM, Marcus Ottosson <konstrukt...@gmail.com>
wrote:

> Hm, that should work. Here’s an example that works for me in Maya 2016.
>
> cmds.file(new=True, force=True)
> cmds.polyCube()
> cmds.select("pCube1.vtx[0]")
> dag_object = cmds.ls(sl=True, objectsOnly=True)
> cmds.select(dag_object)
>
> ​
>
> --
> 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/
> topic/python_inside_maya/kQmQD76OsXY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/python_inside_maya/CAFRtmOC8-w9M91HQDbvBnLnE_
> uRw52nXBS6MbMBmiCRZ9%2BBWNw%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOC8-w9M91HQDbvBnLnE_uRw52nXBS6MbMBmiCRZ9%2BBWNw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> 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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAAD4CW4zfzD_CDXUogvQWHJkdE44jk_MyG4SxOeu5du3j085Vw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to