FOR THE LATEST VERSION PLEASE GO HERE http://www.scriptspot.com/3ds-max/scripts/grabviewport-0

2.1 Changes:
- Now properly includes alpha masks from Xoliul, 3point shaders and standard material into the Alpha and all other passes
- Hides the World Axis icon from the viewport (max 2008 and higher only)
- Added directory selection and filename in the UI
- Saves settings to ini file and loads them the next time the script opens
Save High Resolution Viewport Captures
Passes:
Alpha: Saves alphas from the viewport to the alpha channel of the baseimage
Color: Assigns random colors to all objects and saves the separate pass
SSAO: Saves a separate Screen Space Ambient Occlusion Pass
Wire : Saves a separate Wire Pass
Z-Depth: Control the Zdepth range and save it as a separate pass (first increase the end untill all is visible and then tweak the begin parameter)
ColorMask, AOMask, WireMask: save a separate image or avi file to the same directory as the basefile (filename_passname.ext) AlphaMask : includes an alphamask in the viewportcapture alpha channel or saves out a separate avi file for the animation.
Tested in 3ds max 9, 2010 , 2011, 2012 (DIRECT3D)
PASSES PREVIEW

Install:
Drag Grabviewport2.mcr into your viewport or go to maxscript ->Run Script. Now go to Customize->Customize User Interface. Toolbars->Category->Grabviewport2 and drag the Grabviewport button into your UI or bind a key to it. Special thanks to : Borislav Petrov (MaxScript reference), Kostadin Kotev (miauu )for the Alpha Masking technique
harumscarum · 2013-03-16
Michele71 · 2011-08-25
mustafa mamdouh · 2011-08-18
Anubis · 2011-06-22