OpenColorIO

Open Source Color Management

OpenColorIO 1.0.6 documentation

Python: Constants

This class exists to contain enums used in OCIO, and has several methods to help with administrative tasks.

Examples of Use

import PyOpenColorIO as OCIO

# See if bit depth is a float.
OCIO.Constants.BitDepthIsFloat(...)
Constants.GetInverseTransformDirection(s)
Parameters:
  • s
  • type – string
Constants.CombineTransformDirections(s1, s2)
Parameters:
  • s1
  • type – string
  • s2
  • type – string
Constants.BitDepthIsFloat(s)
Parameters:
  • s
  • type – string
Constants.BitDepthToInt(s)
Parameters:
  • s
  • type – string

Python: Context

Examples of Use

import PyOpenColorIO as OCIO

Description

Context is used to override parameters (as opposed to the default of using the environment variable).

The working directory is the location of Config, and search paths are relative to that.