/* Script: toi_smoothMesh Version: 1.0 Date: November 13 2011 Author: Christiaan van den Bosch Descr: Requires: No object should be called Face. No unnmaed polySmoothFace in scene */ global proc toi_smoothMesh () { string $obj[] = `ls -sl`; for ($o in $obj) { polySmooth -mth 0 -dv 1 -c 1 -kb 0 -ksb 0 -khe 0 -kt 1 -kmb 1 -suv 0 -peh 0 -sl 1 -dpe 1 -ps 0.1 -ro 1 -ch 1 $o; select -r "polySmoothFace*"; string $smth[] = `ls -sl`; rename $smth[0] ("polySmooth" + $o); connectAttr -f All_anim.PolySmooth ("polySmooth" + $o + ".divisions"); } }