Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Programming (https://simplymaya.com/forum/forumdisplay.php?f=32)
-   -   polyunite_merge_convertToSubD (https://simplymaya.com/forum/showthread.php?t=20484)

Falott 04-03-2006 10:49 AM

polyunite_merge_convertToSubD
 
first attempt - not really a script, but it´s WORKING!

I use to convert from poly to subD a lot when modeling and sometimes need to make a "complete" geometry out of the half one but forget to keep a original version. this script is not really neccesary but prevents me from pressing some extra shelf buttons.

my intention is to build a gui which too offers the possibility to automatcally snap-move all borderVerts to the mirrored axis. I still need to figure out.. cause this script isn´t working in case the borderVerts are just somewhere in space.

this is of course free for everyone to try.





// take your half geometry and create a full one - leaving the original mesh beside//
// select the geometry - make sure all borderVerts are snaped to zero on x-axis//

rename tmpOrig_1;
duplicate -n tmpSide1 tmpOrig_1 ;
duplicate -n tmpSide2 tmpSide1 ;
setAttr "tmpSide2.scaleX" -1 ;

// unite side1 and side2//
polyUnite -n tmpUnite tmpSide1 tmpSide2 ;
select -r tmpSide1 tmpSide2 ;
doDelete;

// merge united objects CVs//
select tmpUnite;
ConvertSelectionToVertices;
polyMergeVertex -d 0.0001 -ch 0;

select -r tmpUnite ;
DeleteHistory;
doSubdivCreate ( "2", { "1","1","100000","10"} ) ;
pickWalk -d up;
rename sDivUnite_1;
setDisplaySmoothness 3;

hide tmpOrig_1;


All times are GMT. The time now is 01:08 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018