View Single Post
# 26 04-10-2006 , 08:48 PM
kbrown's Avatar
Moderator
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
Well. As I suspected, the refplanes.mel works ok on my machine with Maya 7. I might rewrite the whole script some day though because it's one of my very first scripts and not very clean or optimized code.

I don't have the original smoothing ON/OFF scripts anymore but these should work:
Code:
// Smoothing OFF
{
	string $sSmoothies[] = `ls -typ polySmoothFace -typ polySmoothProxy`;
	string $sItem;

	for($sItem in $sSmoothies)
		setAttr ($sItem + ".nodeState") 1;
}
Code:
// Smoothing ON
{
	string $sSmoothies[] = `ls -typ polySmoothFace -typ polySmoothProxy`;
	string $sItem;

	for($sItem in $sSmoothies)
		setAttr ($sItem + ".nodeState") 0;
}
To make the shelf buttons, copy each of the code bits above one at a time and paste it to the script editor window in Maya. Then select the code and MMB drag-drop it onto your shelf...


Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!