OpenEXR : BitmapIO - Render Elements - Enable State

OpenEXR : BitmapIO - Render Elements - Enable State

Dan.Sambell
Participant Participant
471 Views
0 Replies
Message 1 of 1

OpenEXR : BitmapIO - Render Elements - Enable State

Dan.Sambell
Participant
Participant

Hi All,

 

I have hit a bit of a hurdle regarding the OpenEXR : BitmapIO and automating the configuration via MAXscript. 
I am trying to automatically add all of the user created V-Ray Render Elements to the EXR file format via MAXscript for purposes of submitting a series of renders through the Batch Render tool. 

 

Below is the code I am using to achieve this:

 

re = maxOps.GetCurRenderElementMgr() -- get the current render element manager

 

for n = 0 to (re.numrenderelements() - 1) do
(
el = re.getRenderElement n
exrSettings.addRenderElementLayerRef el (el.elementname as string) 0 0
)

 

I am able to successfully add all of the V-Ray Render Elements to the OpenEXR : BitmapIO however their state is defaulting to "Off". Does anyone know how to enable/turn on each Render Elements state within the OpenEXR : BitmapIO via MAXscript?

I have looked through the MAXscript docs such as the following:
https://help.autodesk.com/view/3DSMAX/2018/ENU/?guid=__files_GUID_FDECDBDE_C741_4CD8_9DE4_F3355490C7...

https://knowledge.autodesk.com/support/3ds-max/troubleshooting/caas/sfdcarticles/sfdcarticles/3ds-Ma...

However I have been unable to solve this issue. I assume it is going to be something extremely simple that I have overlooked but none the less, I would greatly appreciate some help in pointing out my oversight.

 

Cheers,

Biznitch

0 Likes
472 Views
0 Replies
Replies (0)