Grabviewport is a MaxScript that enables you to take High Resolution Screenshots of your 3ds Max Viewport.
It also offers you the options to capture animations as well as multiple passes that can later be used for compositing your final presentation image.

supports: 3ds Max 9 + Avguard Plugin and up

 [Installation]

Download the Grabviewport2.mcr file and drag it in your viewport or goto Maxscript->Run Script and select the script from there

Then goto Customize-> Customize User Interface and from there you have to choose if you want to set a hotkey to open grabviewport by selecting the Keyboard tab or if you want a button in your UI that opens grabviewport by selecting the Toolbars tab.

Now click on the Category dropdownlist and click on Grabviewport 2.

If you chose to set a hotkey first click on the Grabviewport 2 below the Action text then goto the Hotkey textbox, insert your hotkey and press the Assign button.

If you chose to set a button first click on the Grabviewport 2 below the Action text and then drag this into one of your Max UI toolbars.

 

 

More info:

Grabviewport is a free script. If you do want to make a small donation to show your appreciation then you can do this by pressing the donate button.

 

 

Presets:

Presets enable you to save and load your settings under a specified name.
You can use a preset by selecting an existing preset from the dropdown list and pressing the Apply button.
To Delete a preset you first have to select the preset from the dropdown list and press the Delete button
To Create a preset press the Create button.

You’ll get a popupwindow where you are able to supply New Preset name in the text field or be able to overwrite and existing one by selecting it from the dropdown list.

[!] When naming your Preset make sure you don’t use too much special characters, if you use [,] or “\” in your name the new preset will not be created.  

Size:

Here you supply the desired width and height of your capture.
The Reset button will set your width and height to you current viewport size

[!] 3ds Max has it’s limits and so does your own system , this scripts caps the maximum width of your captures to 7500pixels but it could be that your system will give you a black screenshot because it can’t handle this size. Just decrease the size of your capture if this happens.

Save Settings:

Here you supply the location and filename for your capture results
Your directory can be set by pressing the button which will show you a directory selection dialogbox. (RightClick opens the set directory)
Your filename is set by entering a name in the textbox.
Your fileformat is set by selecting one from the dropdown box
You can also use directory and filename Tags by entering them in the filename textbox.
By pressing the Tag Tool button you will be shown a dialogbox in which you can quickly insert available directory and filename tags.


To insert a directory tag select one from the Drowpdown list and press the use button below it.
To insert one or multiple filename Tags select them from the listbox.

You can select multiple by selecting one , holding the mousebutton and dragging over other tags, by holding control and clicking on the tags one by one or by selecting on tag and shift+clicking on the tag where you want to end your selection range.
After your selection is made press the Use button below.

[!] If you supply a directory tag, the directory set with the directory button will be ignored. If you supply multiple directory tags only the first one will be used.

Available filename tags:
#Date:  adds the current date in  _Month-Day-Year format
#Time: adds the current time in _hours-minutes-seconds format
#UniqueNumber: adds a random number
#MaxfileName : adds your current scenes name
#ViewportName: adds your viewport or active camera name

Animation Options:

These options determine from which to which frame your animation will be captured if the animation mode is active.
Active Time Range will use the range that is currently active in your viewport.
With From To you are able to set your own range by entering your startvalue in the first box and entering your endvalue in the second.

Passes:

Passes enable you to save additional captures in various modes from your scene that can be use for later compositing.

 

Base:

The actual capture of your viewport.

 

 

 

 

 

 

Alpha:

The Alphapass enables you to save a black and white image that corresponds with the opacity of your scene.

If your objects contain a material with an opacity map enabled this one will also be used in the alpha capture. If your capture mode is set to PNG or TGA the alpha will be embedded in the alphachannel of your base capture. If it’s a different filetype your capture will be saved to a separate file with the _Alpha postfix.

 

 

 

 

Wire:

The Wirepass will capture a wireframe pass of your scene.
This will be saved as separate file using the _Wire postfix .

 

 

 

 

 

Color:

The Colorpass will assign a different color to every scene object and capture that state.
This can be useful for later masking each element.
This will be saved as separate file using the _Color postfix .

 

 

 

 

 

Zdepth (+3dsMax 2010 only):

The Zdepthpass will capture a depth pass of your scene. This pass can be used for later adding Depth of Field or other depth effects to your basecapture.
You can tweak the range by pressing the Zdepth button next to the checkbox. This will show you a popupwindow in which you can set a begin and end value.

These values depend on your scenescaling. If your sceneobjects are very large you have to raise the endvalue or if they’re very small you have to lower the endvalue.  By adjusting the values you will see live feedback in your scene of the changes you’ve made. If they’re to your liking you can hit the continue button and the settings will be saved and used if you enable the zdepth checkbox.
This will be saved as separate file using the _Zdepth postfix .

 

 

 

 

 

 

SSAO (+3dsMax 2010 only):

The SSAOpass will capture a Screen Space Ambient Occlusion pass of your scene.
You can tweak the range by pressing the SSAO button next to the checkbox. This will show you a popupwindow in which you can set a Radius and Strength value.


By adjusting the values you will see live feedback in your scene of the changes you’ve made. If they’re to your liking you can hit the continue button and the settings will be saved and used if you enable the SSAO checkbox.
This will be saved as separate file using the _AO postfix .

 

 

 

 



Anti Aliasing:

Anti Aliasing will capture your screen at 2 or 4 times the size of your specified width and height depending on your selection and scale it down with proper interpolation to the specified dimensions.

[!] By selecting a bigger Anti Aliasing mode you are increasing your capturesize quite dramatically. This could give you black capture results because of a too high capturesize.  Just decrease the size of your capture if this happens or select a lower Anti Aliasing mode.

Options:

Crop:
Crop will use your Safe Frames dimensions and crop your captures according to those.
Your Safe Frame Ratio can be specified by adjusting your render dimensions in the 3ds max render setup (F10) .
You can display your Safe Frames by enabling the Show Safe Frames function by hitting shift+F or right clicking in the upper left corner of your viewport and pressing “Show Safe Frames”
When enabling Crop your Size width and height parameters will be converted to use the Safe Frames Ratio. The entered dimension will be those of the final result.

ShowCapture:
ShowCapture will show your basecapture in the Render Frame Window when all of the capturing is done

OpenFolder:
OpenFolder will open the folder in which your captures are saved when all of the capturingis done

Image Animation:
By setting these you determine if you want to save Images or an Animation

Image/Animation Save:

By setting these you determine if you want to save Images or an Animation

When you press the Save button the capturing and saving of your states will begin

© All Rights Reserved Leslie Van den Broeck