Heres another alternative for you, it changes all the polySmoothFace values in the maya scene to the value stored in $SmoothLevel.
int $SmoothLevel = 1;
string $polySmooth[] = `ls -type polySmoothFace`;
string $EachSmooth;
for ($EachSmooth in $polySmooth)
{
setAttr ($EachSmooth + ".divisions") $SmoothLevel;
}
----------------------------------------------
Richard Cheek
https://www.freelance-animation.com
----------------------------------------------