Message 1 of 3
Smoothing Script problem
Not applicable
03-15-2010
02:28 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am having a problem with this script for turning Smoothing on and off, I am following a tutorial where I am ment to be middle mouse draging this script onto my custom self to create an off button for smoothing but it keeps coming up with //error:Syntax error. This is the first time I have used script so dont really have any knowledge of it at all! :S So any help would be much apreciated. I am using maya 2010 incase thats an issue. The script I am using is below. Thanks Again.
{
string $sSel[] = `1s "polySmoothFace*"`;
string $sItem;
for($sItem in $sSel)
setAttr ($sItem + ".nodeState") 1;
print("Smooth Off\n")
}
{
string $sSel[] = `1s "polySmoothFace*"`;
string $sItem;
for($sItem in $sSel)
setAttr ($sItem + ".nodeState") 1;
print("Smooth Off\n")
}