SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Animation / Mel Scripts & Programming / polyunite_merge_convertToSubD
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 04-03-2006, 09:49 AM   #1
Falott
Registered User
 
Falott's Avatar
 
Join Date: Jan 2005
Location: vienna
Posts: 1,095
Thanks: 3
Thanked 20 Times in 18 Posts
Default 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;
__________________
everything starts and ends in the right place at the right time.
Falott is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.