---
title: "VRayOptionRE"
canonical: "https://documentation.chaos.com/space/VMAX/113575345/VRayOptionRE"
format: markdown
---
This page gives information about the V-Ray Render Elements Options render element.


## <span style="color: #000000">**Overview**</span>

---

<span style="color: #000000">The VRayOptionRE render element is a special render element that controls some internal settings for V-Ray that are otherwise inaccessible. This render element does not generate an image or data itself, but rather controls other render elements.</span>

 

<details>
<summary>UI Path</summary>

||Render Setup window|| > **Render Elements** tab > **Add** button > **VRayOptionRE**


![3dsMax_VGrid_RE_Add.jpg](media://9a8fc437-85cc-45d1-b365-b320a99d4500)
</details>

 

## <span style="color: #000000">**Parameters**</span>

---

<span style="color: #000000"> </span>

## > Macro (anchor)

<span style="color: #000000">**Format for OpenEXR metadata attributes**</span>

---

<span style="color: #000000">The data in OpenEXR metadata 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:</span>

```
int_attr=53;float_attr=3.14;vec4_attr=(1, 2, 3, 4)
```

<span style="color: #000000">If a value cannot be recognized as a number or a sequence of numbers, it is assumed to be a string value.</span>

```
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:

```
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.

 

## **Notes**

---

**[1](#1.1)** > Macro (anchor)

 – <span style="color: #172b4d">[VRaySamplerInfo ](https://docs-chaos.atlassian.net/wiki/spaces/VMAX/pages/113587182)</span><span style="color: #172b4d">render element data is always saved with lossless compression. The </span><span style="color: #172b4d">[VRayExtraTex ](https://docs-chaos.atlassian.net/wiki/spaces/VMAX/pages/113575375)</span><span style="color: #172b4d">render element has its own parameter for disabling lossy compression like DWAA/DWAB.</span>