Hello,
I have managed to setup rv_ocio_setup.py as well as config.ocio to work together, for use in screening room for rv. rv_ocio_setup generates environment variables that are read by the config.ocio file, based on the media loaded. However I have 2 issues.
-
This worked and I was pretty proud until I realized that when I load a new version/shot from Flow Production Tracking, the context does not get updated, and the ocio_config_from_media(media, attributes) function does not get re-executed. Is this normal behavior? Is there a way to force its execution on loading a new media?
I’ve tried using a function to retrieve the shot CDL path inside the ocio_node_from_media() function, for the display case, but it always generates an error about variable type (none instead of str). -
I’m on Windows. I first put my rv_cocio_setup.py file into ,C:\Program Files\Autodesk\RV-2024.1.0\PlugIns\Python’, and things worked as they should. But then I realized this was the wrong place to put it, since it was inside the App directory, and I moved it to ‘C:\Users\sergei\AppData\Roaming\RV\Python’, but it would always generate an error:
“ERROR: Unable to retrieve OCIO context: ERROR: $OCIO environment variable unset!”.
I’d get the same error whether I use the CreateFromEnv() or the CreateFromFile() method.
Does this ring a bell to anyone?
Thanks in advance for any insight.
glouk