/*Usually, the Max Radius setting will be about 10% of the size of your scene, and the Min Radius is 10% of the Max Radius. You can find out the size of your scene by using the "Create > Measuring Tools > Distance Tool".*/ global proc fgMinMax( ) { if ( (`window -exists fgMinMaxname`) == true ) deleteUI fgMinMaxname; window -title "FG Min/Max radius " -wh 400 100 fgMinMaxname; columnLayout -adjustableColumn true; floatFieldGrp -label "Distance Across" numberStrings; button -l "Set Min Max Radius " -c "minMax"; showWindow fgMinMaxname; } fgMinMax; global proc minMax( ) { //string $select[] = `ls -sl`; float $number[] = ` floatFieldGrp -q -v numberStrings `; float $ten = 10; float $max = $number[0] /$ten; float $min = $max / $ten; setAttr "miDefaultOptions.finalGather" 1; setAttr "miDefaultOptions.finalGatherMinRadius" $min; setAttr "miDefaultOptions.finalGatherMaxRadius" $max; } ;