Hey when I use smooth mesh preview I would like to have it set at sharp edges. But you have to click it for each object is there a way to set the preference to sharp edges instead of sharp edges and corners? I tried to find it but I can't find it anywhere but I'm sure it's possible right?
Replies
string $sel[] = `ls -sl -fl`;
string $selShape[] = `listRelatives -s $sel`;
for ($i=0; $i<(`size $selShape`); ++$i)
{
setAttr ($selShape[$i]+".osdVertBoundary") 2;
}
If you don't want to select all the objects and set this to all objects in the scene, use this instead:
string $selShape[] = `ls -typ "mesh"`;
for ($i=0; $i<(`size $selShape`); ++$i)
{
setAttr ($selShape[$i]+".osdVertBoundary") 2;
}
If you want to go back to normal, change the osdVertBoundary attribute from 2 to 1.