[Source] VRay Guide
This tutorial will show you how to install and work with the RenderMask script for 3ds Max by Ivan Tepavicharov.
RenderMask helps you render luminance, RGB mask from selected objects. The script don’t affect the scene materials, lights and render settings.
Download RenderMask: tepavicharov.com/scripts.html