I’m trying to use OCIO plugin and I would like it to load the OCIO config file on startup, in the ocio_source_setup.py I added:
default_config = “/Library/Application Support/RV/ConfigFiles/aces_1.0.3/config.ocio”
def ocio_config_from_media(media, attributes):
return config.CreateFromFile(default_config)
What am I doing wrong? is there a guide on how to set up a basic automated ocio pipeline?
Can you not use environment variable?
For context, I set mine two ways. .zshrc and environment.plist.
Then you don’t need to modify ocio_source_setup.py
Unless I’m debugging something I mostly launch RV from Shotgrid or desktop icon rather than a shell, so presumably thats why I did a .plist as well, I honestly can’t remember!
If just for testing you can of course also load the config file manually from RV.
in .zshrc:
export OCIO="/<path_fo_file>/configXXX.ocio"
in environment.plist:
(in /Users/-user-/Library/LaunchAgents/)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>my.startup</string>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>-c</string>
<string>launchctl setenv OCIO /<path_fo_file>/configXXX.ocio;</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
May be different for you, but because I only have fairly limited python/coding/sysadmin skills, I try and keep it simple and as close to support examples as possible.