if you use long (l) flag, it will return fullpath

import maya.cmds as cmds
sel = cmds.ls(sl=True, l=True)print sel

result: [u'|locator1|locator2', u'|locator1|locator2|locator3']
​

On Tue, Nov 17, 2015 at 12:26 PM, Mahmoodreza Aarabi <[email protected]>
wrote:

> i did
> this is the result [u'locator2', u'locator3']
>
> restart maya and create a new scene, create locator1 and duplicate it a
> few times then parent together as you want then test the code again
> ​
>
> On Tue, Nov 17, 2015 at 12:24 PM, likage <[email protected]> wrote:
>
>> Select both locator2 and locator3 instead
>>
>> --
>> 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/a1a0fe74-e99d-4904-9e59-3763df856c4e%40googlegroups.com
>> <https://groups.google.com/d/msgid/python_inside_maya/a1a0fe74-e99d-4904-9e59-3763df856c4e%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
>
>
> Bests,
> madoodia
>



-- 


Bests,
madoodia

-- 
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/CADvbQwJwHzBpN_hY4vrd-yM8TR6XqWSPDz9hWvmTmKP%3Dybm6nw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to