Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

exr metadata – Allows additional OpenEXR attributes that will be written in the file. See below for a discussion of the format for the attributes. 

exr data window – Specifies the way in which V-Ray will determine and write data window information to the OpenEXR file.  

Render region  Saves Saves the currently selected rendered region to the OpenEXR file.
Auto
  Automatically Automatically determines and writes data window information to the OpenEXR file. The data window is determined from the pixels that have non-zero alpha values.
Whole image
  Saves Saves the whole image even when rendering region.

...

The data in OpenEXR metadata files attributes are of the format attr1=val1;attr2=val2;... where the values can be either integer or floating-point numbers, or lists of numbers in brackets representing vectors, matrices etc. For example:

...

Code Block
string_attr="abc"

Metadata attributes can be dynamically set using MAXScript. An example with saving the animated camera ISO value in the .exr output is provided below:

  1. Prepare your scene. Set VRayPhysicalCamera (use its default name VRayCam001 or modify the script accordingly). Add VRayOptionRE render element. Enable V-Ray raw image file and specify .exr output file.
  2. In the MAXScript Listener consecutively type the two commands below, using Enter at the end of each line:
Code Block
fn changeMetadata = ( local str="cameraISO="+($VRayCam001.ISO as string); print str; ((maxOps.GetCurRenderElementMgr()).getRenderElement 0).exr_metadata=str; )
callbacks.addScript #preRenderFrame "changeMetadata()" 

3. Render a sequence of frames with animated camera ISO. In the resulting .exr files you'll have the cameraISO attribute displaying the current ISO value of the rendering camera in each frame.