GrabViewport 2.1

56 votes
Version: 
2.1
Date Updated: 
06/13/2011
Author Name: 
Leslie Van den Broeck

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

 

 

Version Requirement: 
3ds max 9 and up

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ravenslayer's picture

hey r3ynard did you press

hey r3ynard did you press ctrl+e to evaluate the script after you adjusted it?

i'm going to make sure i fix this in the next update but it must be because you used the clean 3ds max script or something simular that disabled a few standard max functions

r3ynard's picture

Still Error

Hi Anubis,

Sorry for double posts earlier, coz my Internet is bit slow here.
Anyhow, the script still give me error when I deleted the .Visibility from the line.

AttachmentSize
error.jpg 373.2 KB
r3ynard's picture

These are the specs of my

These are the specs of my system:
Intel Xeon X5355, 4GB Ram
Quadro FX 4600
Windows XP 64bit, 3dsMax 2009 64 Bit.

Anubis's picture

edit that line

Hi r3ynard,
just delete .Visibility from that line, ie it s'd look like this:
if(((maxVersion())[1] / 1000) > 10 and ViewCubeOps != undefined) then

cheers

my recent MAXScripts RSS (archive here)

r3ynard's picture

Error in Script

This script give me an error, "visibility" in undefined.
I'm using max2009 64bit. Anyone can help me?

Thanks.

AttachmentSize
error.jpg 270.95 KB
r3ynard's picture

Error in Script

This script give me an error, "visibility" in undefined.
I'm using max2009 64bit. Anyone can help me?

Thanks.

AttachmentSize
error.jpg 270.95 KB
ravenslayer's picture

will look into it

tnx for informing me , could you give me your system specs, max version and what bitversion it is

i think this might be caused by the viewport capturing too fast while the viewport isn't updated entirely yet

Violet's picture

Viewport and texture mess

Still does this in my version - may be something with my system?

AttachmentSize
viewport.jpg 62.63 KB
fajar's picture

some thought .... maybe you

some thought .... maybe you can add callback when max close or save file, it autmatically save grabbed viewport in current directory and same name as original max file.

thanks

ravenslayer's picture

tnx :)

ahah yeah that's probably something i can't check for in my code :)

i'll look into those suggestions, so consider them added to the list!
tnx

and i added an extra check to the script incase the viewcubeops isn't available

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.