open the script editor in Maya: window -> General Editors -> Script Editor
in the script editor go to file ->source script browse for the script and you're done
or if you want instead of source script use load script in the mel tab press Ctrl A on your keyboard and use the numeral enter key
if you want to put the script on your shelf just select all and middle mouse drag to your shelf
How To Use
just uncheck or check the render status options u need. Select the objects you want to apply the changes for, click on the execute For selected button.
This script works on as many objects as you need
hope you like it
in this new version 1.0.1
i added Some new buttons just to make the process much faster:
the buttons are: All On/ All Off/ and one that removes primary visibility, Cast Shadows and Receive Shadows.
in this new version 1.0.2
i added "Opposite" to the renders stats check boxes
i also made the script a bit smarter, now it wont fail if you selected objects that dont have render stats, it can recognize polygons, nurbs and subdivds in your selection and apply the renders stats to them only.
Ps: this script wont work if you selected groups
in this new version 2.0
i added a section for mental ray render stats according to a feature request, you can find version 2.0 of the script
inside the rar file along with the older version