CGTalk > Software > Autodesk Maya > Maya Programming
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 01-21-2004, 12:23 PM   #1
safakoner
Software Engineer
 
safakoner's Avatar
portfolio
Safak Oner
Sony Pictures Imageworks
Vancouver, Canada
 
Join Date: Mar 2002
Posts: 607
Lightbulb Smooth Level Toggle

hi
this is my last small code and that is working like Lightwave's smooth.
You can define that to a hotkey.
I hope you like it.


string $CurSel[] = `filterExpand -sm 12`;
if(`size($CurSel)` == 0)
error "No polygon object selected.\n";
else
{
if(`size($CurSel)` > 1)
error "Please select only one polygon object.\n";
else
{
if( `objExists SmoothToggle` )
{
delete SmoothToggle;
selectMode -object;
string $csel[]= `ls -sl`;
select $csel;
print "Equinox Smooth Level Set to : 0";
}
else
{
selectMode -object;
string $csel[]= `ls -sl`;
polySmooth -mth 0 -dv 2 -c 1 -kb 1 -ksb 1 -khe 0 -kt 1 -kmb 1 -suv 1 -sl 1 -dpe 1 -ps 0.1 -ro 1 -ch 1 $csel;
string $sn[]=`ls -sl -dag -type mesh`;
string $sel_fs[]=`listConnections -type polySmoothFace $sn[0]`;
rename $sel_fs[0] SmoothToggle;
select $csel;
print "Equinox Smooth Level Set to : 2";
}
}

}
 
Old 01-17-2006, 06:00 AM   #2
CGTalk Moderation
Expert
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,478
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 09:44 PM.


Powered by vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.