Without having tested it yet, I believe when you use the wild card, maybe it is 
causing a sort. Possibly what you will need to do is to just first get the 
Gizmo nodes you want, long path, without any parents or children. Then loop 
over each one and use listRelatives to produce the hierarchy you want for each 
node. But you will still need to use that same advice to process the hierarchy 
in reverse 




On Aug 23, 2012, at 5:52 AM, Florian Croquet <[email protected]> wrote:

> 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.
> 
> 
> the first line is with your cmds.ls and the second is my hand typed list 
> 
> I guess you're right, I should create a hierarchy for my gizmo but finally it 
> works with this other solution so .... 
> -- 
> 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