ScriptSpot home

Grab Viewport Plus

Downloads

  • Version 1.1Listed version

    Listing updated

    Release notes

    v.1.1 -- directory string bug fixed

Earlier releases (1)
  • Version 1.2

    Release notes

    v.1.2 -- FiXed: expert mode is only working when viewport is not maximized

Other files

3ds Max compatibility
See original listing claims
Community compatibilityNo compatibility reports yet

No reports yet for the available releases.

Community reviewsNo reviews yet.

Listing details

Version
1.1
From original requirements
9 or newer
Original version requirement
3ds Max 9 and higher
Author’s update date
Legacy votes
56
Listing created
How compatibility works

Compatibility comes from the author’s supported range or requirements in the original listing. A tested version records what the author tried.

“2020 unconfirmed” in the catalog means support for 3ds Max 2020 is still unknown.

Community reports record successful tests on specific releases.

Posted by

Anubis

Panayot Karabakalov

More by this author

Grab Viewport Plus

A requested script that add a few options to the standard Max screenshot tool:
   incremental save in given folder and prefix name,
+ forced toggle to Expert mode and maximize Viewport.

Setup & notes

Update:
v.1.1 -- directory string bug fixed
v.1.2 -- FiXed: expert mode is only working when viewport is not maximized

Usage Notes:
All script settings are stored in INI file in Max "ui\macroscripts" folder.
[*] Hold Control key while executing to load the INI file for editing.
Yes, I know, the most people prefer GUI where to enter the configs, but
the names of all keys are descriptive, so not the big deal to edit them.

-- their is the default contents of the INI file:

[Settings]
SaveToFile=1
MaximizeViewport=1
DisplayInVFB=1
Directory=C:/3ds Max Screenshots
FileName=img_
FileFormat=.jpg

First 3 keys are boolean values. 0 = disable , 1 = enable

"SaveToFile" -- enable/disable saving. 
"MaximizeViewport" -- toggle Expert Mode + Maximize Viewport. 
"DisplayInVFB" -- whether to display or not the shot. 
"Directory" -- is the output path. 
"FileName" -- is the base prefix. 
"FileFormat" -- the output file format.

Error handler:

To prevent errors while keeping the code simple, I end with this:

  • Disable first 3 options by set their value to 0 and
    enable them by set their value to 1 (or whatever else different from 0).
  • If the directory not exist the Max "previews" folder will be used insted,
    e.g.: C:\Documents and Settings\USER\My Documents\3dsmax\previews
  • If "FileName" key is empty, the "img_" will be used by default.
  • If you set an invalid file format (i.e. that Max not support) then
    the JPEG (.jpg) will be used by default.

Installation: Typical/normal macro script installation.

Comments (17)

Comment policy

HCkev

-Comment removed-

-Sorry, I accidentally posted a question on the wrong script -_- Can someone delete this?

David

crash, texture corruption

I'm having problems, I'm saving a viewport animation to a string of images, but the first output corrupts the texture on the viewport object, and quitting out crashes 3D Studio Max?

Michele Marcelli

Thanks Anubis for this great script ;) One point to you :)

Panayot Karabakalov

Thanks

Спасибо, Александър!

Alexander Chernega

Большое спасибо.
Из многих подобных скриптов предпочел этот. Скрипт великолепно справляется с задачей.

Thank you very much. An excellent script.

asymptote

very VERY useful, perfect when writing tutorials

thanks

Panayot Karabakalov

Lets hope everything is fixed now :)
Thank you Viktor for testing support!

veneta

might i miss the funny part? :)
nicely done, thank you!

harumscarum

thank you!!

harumscarum

expert mode is only working when viewport is not maximized?

Panayot Karabakalov

ops, guess Im very absent, hehe... i fix the bug now, try updated v.1.1

harumscarum

both with no errors.
but your initial scripts is working fine if output folder is not exist. weird? yeah:) so i use it - files are in 'max/preview' folder

Panayot Karabakalov

Hi again, I'm trying to figure out what's wrong with "/" sign. It's just built string and work fine in Max2009 and below, so I suspect that this is a some disappointing bug in Max2010-2011, but to be sure make this 2 tests --
test
...and tell me what's happen. If the test 1 bring some error and test 2 works fine then the fix would been:

-- replace this line...
outFile = Directory + "/" + FileName + FileFormat

-- ...with this 2 lines
outFile = "" -- 1st declare variable as string
outFile += (Directory + "/" + FileName + FileFormat)
harumscarum

thank you!
it is stopped to work when i changed path and file format
could you please also add 'forced expert mode' only if expert mode is not active

Attachments
Reply to harumscarum
Panayot Karabakalov

Realy strange error for "/". The expert mode is ok I think, if you notice that is a little bit slower, that come only in PNG (due to my test).