Defaulting VFB to use OCIO Correction with Envars

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.

Thanks for any info,
Ayo

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

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