ggarra13 / mrv2

Professional player and review tool for vfx, animation and computer graphics.
https://mrv2.sourceforge.io
BSD 3-Clause "New" or "Revised" License
222 stars 14 forks source link

How do I set the OCIO config to use from Python API? #137

Closed BigRoy closed 1 year ago

BigRoy commented 1 year ago

Issue

How do I update the OCIO config used from the Python API?

Similar to this preference:

image

I couldn't find an entry in mrv2.settings or alike. Or should I be setting OCIO env var instead?

Sidenote

It seems like the image related ocio methods are not documented in mrv2 0.8.1/docs/en/python_api:

ggarra13 commented 1 year ago

Unfortunately, setting an environment variable won't work. I added an image.setOcioConfig() and image.ocioConfig() in this pre-release version of mrv2 v0.8.2:

.exe installer: https://mega.nz/file/GepQSKrT#mvu-lD5r74ry8IyWJwIuAALwYXohMBYUj3Wfv65XgAw

.zip: https://mega.nz/file/bDAUABCS#YrUdBj-VUOQwIrTRSGqK7P6piwgK07g8UKY7Bhvd6bU

This version also addresses your Python Editor issues.

ggarra13 commented 1 year ago

I also updated the documentation, btw. You are my best beta-tester and a true perfectionist!

BigRoy commented 1 year ago

This does indeed work in the 0.8.2 beta.