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