set exr settings via maxscript

I'm been messing with the exr settings in the help file and I'm not getting the results I need. Which is just setting the desired settings for the exr that i plan on rendering out of 3ds max.
Is there a way to adjust the settings like compression type and whatnot through maxscript?

I want it to have
-- zip compression scanline
-- store image as tiles
-- save full image
-- float 32

Comments

Comment viewing options

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

Hello, did you manage to get

Hello,
did you manage to get this working with fopenexr.loadEXRParams ?
Cause when I use the function it always returns a false and does not change the parameters at all...

Hope someone can help me out!

JokerMartini's picture

I tried:

I tried rendering out a 1x1 px exr image with the desired settings and then using

fopenexr.loadEXRParams <&String>exrName

to load in the parameters in the maxscript but that did not work at all in overriding any settings.

John Martini
Digital Artist
http://www.JokerMartini.com (new site)

JokerMartini's picture

Alright

Thanks guys for your posts. I think my best way around this might be to just make a dummy exr file and use the fopenEXR Load parameters method and do it that way to get my desired settings.

John Martini
Digital Artist
http://www.JokerMartini.com (new site)

Anubis's picture

bad news...

OpenEXR settings is still not fully exposed.
The old interface has gaps, removed & replaced
with new in 2011 but with new gaps.

/*
MaxOpenEXR (exrio) Max8/2010
OpenEXR (fopenexr) Max2011+
*/
 
-- zip compression scanline:
exrio.SetSaveCompressionType 2 -- Max8/2010
fopenexr.SetCompression 2 -- Max2011+
 
-- store image as tiles:
"nothing" -- Max8/2010
fopenexr.setSaveScanline false -- Max2011+
 
-- save full image:
"nothing" -- Max8/2010
fopenexr.setSaveRegion false -- Max2011+
 
-- float 32
exrio.SetSaveBitDepth 2 -- Max8/2010
"nothing" -- Max2011+

my recent MAXScripts RSS (archive here)

br0t's picture

Well if you are on Max 2011

Well if you are on Max 2011 or above, there is an interface to manipulate the .exr settings, called "fopenexr".
If youre on Max 2010 or below, or you dont have to set everything by script and just want to provide a dialog for the user you can either use

SelectSaveBitMap()
--or
getBitmapSaveFileName()

Cheers

Never get low & slow & out of ideas

Comment viewing options

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