# Defaulting VFB to use OCIO Correction with Envars

**URL:** <https://forums.chaos.com/t/defaulting-vfb-to-use-ocio-correction-with-envars/51147>\
**Category:** General\
**Tags:** ocio, environment-variable, default, vfb\
**Created:** [September 24, 2014, 9:53pm UTC](https://forums.chaos.com/t/defaulting-vfb-to-use-ocio-correction-with-envars/51147 "2014-09-24T21:53:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![burgess3d](https://avatars.discourse-cdn.com/v4/letter/b/d6d6ee/32.png) [@burgess3d](https://forums.chaos.com/u/burgess3d)\
**Post date:** [September 24, 2014, 9:53pm UTC](https://forums.chaos.com/t/defaulting-vfb-to-use-ocio-correction-with-envars/51147/1 "2014-09-24T21:53:08Z")

</div>

Hi,

Is there an environment variable that can be set that will set the VFB to default to OCIO correction? Currently I see envars to control sRGB or Lut enable (and associated lut file) but nothing for defaulting the VFB to start with OCIO.

> **[Chaos Docs](https://documentation.chaos.com/)**

Thanks for any info,  
Ayo

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [September 25, 2014, 7:57am UTC](https://forums.chaos.com/t/defaulting-vfb-to-use-ocio-correction-with-envars/51147/2 "2014-09-25T07:57:15Z")

</div>

You can use the environment variable VRAY\_VFB\_OCIO=1 to enable the OCIO color correction (you might also need VRAY\_VFB\_SRGB=2 to disable the sRGB). The OCIO profile itself is specified with the OCIO environment variable, and the input color space, display device and view transform - with the environment variables VRAY\_VFB\_OCIO\_INPUT\_COLORSPACE, VRAY\_VFB\_OCIO\_DISPLAY\_DEVICE, VRAY\_VFB\_OCIO\_VIEW\_TRANSFORM respectively.

In Maya, you can also use the “vray vfbControl” MEL command to control these things.

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![burgess3d](https://avatars.discourse-cdn.com/v4/letter/b/d6d6ee/32.png) [@burgess3d](https://forums.chaos.com/u/burgess3d)\
**Post date:** [September 25, 2014, 1:53pm UTC](https://forums.chaos.com/t/defaulting-vfb-to-use-ocio-correction-with-envars/51147/3 "2014-09-25T13:53:29Z")

</div>

Works perfectly. Thanks Vlado.

Is it safe to assume that if VRAY\_VFB\_OCIO\_INPUT\_COLORSPACE isn’t set that the reference or scene\_linear roles defined in the OCIO config file are picked up?

Thanks again,  
Ayo
