I don't see it as being exported in the source. On a side note, I wish the ColorConfig support in OpenImageIO supported the Context concept from OpenColorIO. This allowed you to set the context that should be used when parsing the OCIO config. Via OpenImageIO, the only way I have figured out so far to be able to load multiple OCIO configurations in a single process is to use a global mutex. I have to do a process like: 1. Acquire the mutex 2. Modify the current environment (i.e. PROJECT / SCENE / SHOT) 3. Create a ColorConfig, either from a file, or via the current OCIO value (which will use the current env as the context) 4. Set the env back to original 5. Release the lock
On Sun, Jun 28, 2015 at 3:20 PM Jep Hill <[email protected]> wrote: > Hi guys, > > Using the OIIO Python bindings (compiled against OCIO), how do I get the > equivalent of the C++ API's ColorConfig or the command line’s > “—colorconfig” so I can use multiple OCIO configs within a single Python > function? Looking at the 1.6 docs, I’m only seeing it for C++. > > Many thanks, > Jep > > > _______________________________________________ > Oiio-dev mailing list > [email protected] > http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org >
_______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
