thanks a lot! works well. now I want to replace the value like this: setAttr polySmoothFace1.divisions $sdiv + 1; tried it with quotes as well, doesn't work, any tips?