OpenColorIO

Open Source Color Management

OpenColorIO 1.0.6 documentation

Python: ColorSpaceTransform

This class is meant so that ColorSpace conversions can be reused, referencing ColorSpaces that already exist.

Note

Careless use of this may create infinite loops, so avoid referencing the colorspace you’re in.

Examples of Use

import PyOpenColorIO as OCIO

transform = OCIO.ColorSpaceTransform()
ColorSpaceTransform.getSrc()

Returns the name of the source ColorSpace in this transform.

Returns:ColorSpace
Return type:string
ColorSpaceTransform.setSrc()

Sets the source ColorSpace in this transform.

Parameters:str (string) – source ColorSpace
ColorSpaceTransform.getDst()

Returns the name of the destination ColorSpace in this transform.

Returns:ColorSpace
Return type:string
ColorSpaceTransform.setDst()

Sets the destination ColorSpace in this transform.

Parameters:str (string) – destination ColorSpace