Repairing bad mesh structure

I cant script yet, but have an idea for a script which can do the following to get a nice structure in quads (e.g. for smoothed objects with not good structure ..) :

-select the polys
-cut object vertical and horicontal
-select continous edges (to select just the new edges, maby someone knows a better way for example select the cut faces tool actions)
-invert selection
-delete the old edges if necessary merge vertices from boarder edges
-cleanup and delete history

I can do this manually and need 3-4 hours. A script would safe me a lot of time and i dont have to built it new.

Can someone help

greets kupe

If you turn on "Echo All Commands" in the script editor, it will tell you the code for all the actions you are carrying out as you work. This should give you an idea of some of the important command calls you would be using, then you can plan a strategy of how to attack the problem and start setting up your data handling details.

Sorry, don't know if you didn't already know this, but you said you were new to scripting and I haven't done anything with that type of stuff yet, just throwing it out there.

Thanks for u fast answer, I ll try it with that. The biggest problem i think (which is so timeconsuming) is the merging and deleting part and how to select the contionous edges.

The maya reduce doesnt give me a symetric result in quads, so i think this way could be good.

I ve seen u are a rigging specialist, maby u can also help me with my weight import problem in the Animation part...

thanks kupe

I wonder why it isnt yet possible to scan the coordinates in maya of the object and than automatically create the best possible mesh in quads

because theres no such thing as best possible mesh!