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]>
> 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