ScriptSpot

Script

Grabviewport

By ravenslayer · Credited author: Leslie Van den Broeck · 2012-01-01

Version
2.5
Date updated
2012-01-01
Votes
8
Download
Download
Description

 

 UPDATES//

03/31 Update2: Added a Nodialog option that uses the last settings . Enable by shift+clicking the grabviewport button

03/31: Fixed camera Deletion with zdepth and fixed version check in some places

01/20: Fixed attempting to acces deleted scene object error

01/15: Fixed scenes folder undefined error

01/14: Fixed pre max 2010 error message

01/07: Fixed "Active Time Range" Png alpha animation bug

01/06: Fixed Ratio Bug

01/04: Added Alpha for PNG Animation

 

Grabviewport is a FREE 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.


 

http://leslievdb.com/grabviewport.htm

Attachments

Tags: viewport, Color, alpha, passes, capture, high resolution, masking

Comments (15)

harumscarum · 2024-07-18

could anyone please reupload?

mjblosser · 2024-07-18

Here it is, script attached.

Attachments

Unknown property: "setwindowpos"

milie · 2016-03-10

Hey, for some time now i recieve this error when running for the script for the first time and hit "Save":

>> MAXScript Rollout Handler Exception:
-- Unknown property: "setwindowpos" in dotNetClass:System.Reflection.Assembly <<

Then, the MXS windows opens up the script, i evaluate the script and from there on it works flawlessly for the current opened session of 3dsmax. If i restart 3dsmax, the script breaks again.

This doesn't happen in Nitrous, just in OGL and Direct3D...

Anybody dealt with this?

Changes viewport to "consistent colors" after each grab

onitreb · 2015-07-28

This script is very useful. Thank you.

One problem I have is after I use the script, it changes my viewport to consistent colors. It'd be very awesome if it didn't!

:)

Uninstaling the script

Marcowhich · 2013-02-08

Thanks for script.
I tried using it to capture a 100 frame animation as a test, but the output file will not open.
By the way, how can I remove the script from 3dMax.

Thanks!

jamoka · 2012-10-12

Very usefull.

titane357 · 2012-03-02

Thanks for your script ! really usefull :-)

some more suggestion

harumscarum · 2012-03-01

1. presets are really useful, but is it possible to make script remember screenshot path for max file?
2. please add 1 second delay when Realistic mode is enabled (it will cause less noise on image)

thanks!

i attached illustration for clarity

harumscarum · 2012-01-05

most of toolbars are hidden

and little suggestion - since script saves its last settings would be great to have separate macroscript which will run script with last settings without interface

thank you very much for efforts)

Attachments

tnx for the bugreport, i

ravenslayer · 2012-01-06

tnx for the bugreport and suggestion, i found the problem (float to integer convertion always outputted one as ratio)
You can download the adjusted script above :)

I'll also make a no dialog version this weekend!

harumscarum · 2012-01-05

i use max2012x64 and as soon as try to change resolution manually even for 1 pixel - height and width appears equal. if i enable crop - viewport keep original viewport dimensions with empty area from the right-top

ravenslayer · 2012-01-05

i think i just found what causes this, do you have the ribbon or maybe another toolbar docket to the left side of your screen?

manual resolution issue

harumscarum · 2012-01-03

manually i can only set same width and height. is it bug or feature?

ravenslayer · 2012-01-04

Normally it should scale according to your viewport ratio.
However if you enable the crop function it will scale according to your renderproperties (safe frames) ratio.

Or are you getting a ratio of 1 all the time?

Small update

ravenslayer · 2012-01-02

Did a very minor tweak to the script so it doesn't show the gizmo anymore when in zdepth mode. This seemed to be a problem in some max versions.

also when an object doesn't have a material it will now not keep the color in the zdepth pass

Updated Script available below