// EJL Finish Loop v1.0 // 8-2-07 // // By: Eric Lyman // mezza550@gmail.com // www.eric3d.com // // DESCRIPTION: // // When building edgeloops or re-doing topology on a mesh, it can become // time consuming to actually create edgeloops by hand with the split polygon and/or edge extrude // tools. With this script you can cut that time in half. // // HOW IT WORKS: // // This script looks for 'open' patches on your polygon mesh, fills the hole and then attempts // to create logical divisions by first triangulating the newly created poly face and then // quadrangulating. There is room for error, so always check the newly created divisions. // // HOW TO USE: // // This script works in object or component mode. In object mode select the object and execute // the script (will operate on all holes). In component mode you'll need to select one or more // border edges of the hole you want to finish, and then execute the script (operates on // only that hole). // // Make sure that the hole(s) you are going to work on have completely closed borders, otherwise // the procreedure will fail or provide undesireable results. // // INSTALLATION: // // Copy script in to your scripts directory (i.e. /User/maya/7.0/scripts). In the command line // or script editor, type the following line (which can be made in to a hotkey): // // If you have any questions or comments, please send me an email at mezza550@gmail.com global proc EJL_finishLoop() { // Close empty loop polyPerformAction polyCloseBorder e 0; // add divisions polyPerformAction polyTriangulate f 0; performPolyQuadrangulate 0; // del history toggleSelMode; toggleSelMode; DeleteHistory; // ending print "EJL says: Poly loop(s) has been built. Some polygons may need additional clean up.\n"; }