This could very well work with 2010 but is untested as of yet.
These scripts are to be used with the mayapy executable that comes with Maya 2011.
Requirements :
What does this stuff do?
Usage of renderMayaVray.py:
mayapy renderMayaVray.py --scene file.mb --startframe 1 --endframe 100 --camera renderCamShape --layer renderLayer --output path/to/renderdir
Please note : the camera name is the shape node.
The layer is optional at this point. It will render the default render layer without a specified layer.
However, if there is already more than the usual masterLayer it will render the first layer it finds versus the masterLayer. Suggestion is to create a base render layer and create other render layers from that base.
It will name the resulting EXR the same name as the scene. EG. my_car.mb becomes my_car.0001.exr.
If you have a layer called "wheels" it will name the render my_car_wheels.0001.exr
There is initial stereo camera support if you use "left" and "right" as part of the camera names. This is currently untested.