Yes but it doesn't seem to work, cmds.ls list my object by alphabetical 
order.
I tried with your flags but they have also another order and it doesn't 
provide me my outliner order.

<https://lh3.googleusercontent.com/-AIfpelAYHgo/UDYmbMFYEAI/AAAAAAAADR8/IscOoyEzxtU/s1600/Screen+shot+2012-08-23+at+14.46.56.png>
I guess you're right, I should create a hierarchy for my gizmo but finally 
it works with this other solution so .... 

Le jeudi 23 août 2012 14:33:06 UTC+2, combi a écrit :
>
> I think that if you use 
>
> lookingForGizmo  = cmds.ls('Gizmo_*', dag = True, l = True, ap = True, g 
> = True)
>
> lookingForGizmo.reverse()
>
> You should have a list in hte same order as the hierarchy.
> Also try to use long names to avoid problems of duplicate nodes when you 
> work with hierarchies. Maybe you'll have to deal with long names if you are 
> processing htose strings to rename objects, but it's well worth the 
> (little) effort in order to always have consistent/predictable results.
>
> Nicolas
>
>
> 2012/8/23 Florian Croquet <[email protected] <javascript:>>
>
>> Ok so that means that I have to write by hand my list and  I can't use 
>> :         lookingForGizmo = cmds.ls('Gizmo_*', g = True, ap = True) 
>>
>> -- 
>> view archives: http://groups.google.com/group/python_inside_maya
>> change your subscription settings: 
>> http://groups.google.com/group/python_inside_maya/subscribe
>>
>
>

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to