if you can figure it out, do you think that adding a method getPolyshells() to the shape object would be a good idea?Calling this method would return a 2d list of faces shells.
So far I didn't found a command that could return the shells without having to select them in the UI. Maybe it is possible with the API but I am so bad with the API that I can't figure this one out thanks On Thu, Mar 19, 2009 at 2:06 AM, Chad Dombrova <[email protected]> wrote: > > that's a tricky one. i'll have to take some time to look it over. > > -chad > > > > So I finally took the time to look at pymel ... WOW! I mean WOW! I had > > no Idea it was this powerful! I knew it would be nice, but not like > > that. I am extremely impressed and pleased. Great work guys...really > > great! > > > > Now for my question. > > I am looking at a way of getting all the poly shells from a mesh. I > > have this function I did in the standard python for maya that does the > > following. > > 1) list all the faces of the mesh, > > 2) select the first face, grow the selection to shell (using the > > polySelect(extendToShell=True) function), > > 3) list the selected faces of that shell > > 4) store those faces in a list, > > 5) remove those faces from the list created at #1 > > 6) repeat step 2 to 5 until the first list is empty. > > > > It works but the function selects the faces in the UI, and I quite > > dislike it. > > > > Any idea how I could improve that using pymel? > > > > Thanks > > > > > > > > > > -- They say, "Evil prevails when good men fail to act." What they ought to say is, "Evil prevails." Nicolas Cage as Yuri Orlov in Lord of War. --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
