SimplyMaya
Community
The SimplyMaya Forums
View all Forums
A place you can ask or answer VFX related questions
Latest forum posts
Safari browser for Simply Maya?
Wireframe Playblaster for Maya - Render Your Wireframes With Ease!
Mr Bean Animation
Boolean>Difference - Problem
specular highlights at UV seam
Rig explodes when translation on splineIK on spine
News and articles
News & Articles
Vfx related news and articles
Random news
Tutorial: Attaching a MASH network to nCloth
Texture collaboration system (Coming Soon)
Upload or Download textures
A place to download great textures or share your own with the community
Legacy Resources
Latest uploads to our system
View new Posts
Edit your profile
View threads your subscribed to
User control panel
Training
Maya Training and Tutorials
View all training
View hundreds of hours of Maya training online or via download
Looking for something specific?
Focus on Archviz & Environments
Focus on Organics
Focus on Hard Surface
Focus on Lighting, Rendering & Texturing
Focus on Dynamics, Rigging & Animation
Post Production
Training options on SimplyMaya
Current member status:
Not logged in
Create Account
Pick a streaming payment plan
We offer several different subscription options for our online training
Try streaming for free
Watch up-to three hours of training over a 10 day period for free
Buy training for download
Choose the content you want and buy it outright, downloads don't expire and you can keep them for as long as you'd like
Latest training
Integrating 3D models with photography
Substance Painter 2017
Complex UV Layout in Maya 2018
Training you might like
Burt The Cartoon Dinosaur Vol 1 - Modeling
Spach-Alspaugh House and Environment Volume 4
If you want to ask a SimplyMaya training related question use this forum:
SimplyMaya tutorials
Create Account
Sign in
Username
Password
Sign in
Forgot Password?
SimplyMaya Forums
Welcome to the forum, feel free to ask questions here.
SM Forums
/
Maya Questions
/
Programming
/ Poly Smooth toggle
Register
FAQ
Calendar
Mark Forums Read
Programming
MEL Scripts, Expressions & Programming Related Topics
Join the conversation. Reply to post
Thread Tools
21-01-2004, 12:22 PM
#
1
equinox
Registered User
Join Date: Apr 2003
Posts: 42
Poly Smooth 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";
}
}
}
__________________
My Web Site
R&D
Storm V3 rigging and animation plug-in for Autodesk Maya
Reply with quote
equinox
View Public Profile
Visit equinox's homepage!
Find More Posts by equinox
Reply
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Work Flow High Poly/Low Poly
LadySekhmet
Maya Basics & Newbie Lounge
4
11-02-2012
02:43 AM
poly smooth
marcusenberg
Maya Basics & Newbie Lounge
3
05-05-2006
10:38 AM
poly with smooth proxy texture transfer
meshue
Maya Materials & Textures
1
28-11-2005
03:09 PM
Poly smooth
errethakbe
Maya Technical Issues
4
30-06-2005
01:35 AM
How to smooth poly cube edges
doodle
Maya Basics & Newbie Lounge
1
12-01-2003
05:54 AM