Set Normal Size
Mel Scripting January 11th, 2008
Descriptions: This script will set the length of the normals by adjusting the slider on a window, and toggle the normals on and off.
global proc setNormalSizeProc()
{
$normalSize = `floatSlider -q -value setNormalSizeFS` ;
setNormalsSize $normalSize;
print ("Normals size :" + $normalSize);
}
//Sample of a window you could use.
if (`window -exists setNorWindow`)
{
deleteUI setNorWindow;
}
window -t "Set Normals Size" setNorWindow;
rowLayout -nc 2 -cw2 64 64;
button -bgc 0.627 0.6 0.872 -w 64 -h 22 -l " Normal" -command "ToggleFaceNormals";
floatSlider -w 64 -min 0 -max 1 -value .5 -step .1 -dc "setNormalSizeProc" setNormalSizeFS;
setParent..;
showWindow setNorWindow;