The Mel command ls has a flag -ap   For all paths

ls  -ap "Gizmo_*"

Should give you what your looking for



On Wednesday, August 22, 2012, Florian Croquet wrote:

> Hi,
>
> I have a question about the command : cmds.ls
> Have a script which allow me to duplicate a object and rename it, the name
> of the object follow this model : Gizmo_NameA, Gizmo_NameB,Gizmo_NameC ...
> I have a lot's of other object in my scene but I want to list all my Gizmo
> items in the scene.
>
> So I started with cmds.ls and I thought that I could find a Flag that
> allow me to filter my list with the a part of the name : "Gizmo_".
> But when I looked on the documentation, I didn't find anything.
> I tried to find something on google and I found this post
> http://forums.cgsociety.org/archive/index.php/t-998695.html which seems
> to be interesting but a part of the code has been replaced by another thing
> I found cmds.filter but it doesn't seem to filter a list by name
>
> Somebody has an idea ?
>
> Best,
>
> Florian
>
> --
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings:
> http://groups.google.com/group/python_inside_maya/subscribe
>


-- 
[email protected]
http://smannimation.blogspot.com/
http://nymayausersgroup.blogspot.com/
http://smann3d.blogspot.com/

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