# OpenColorIO

## Open Source Color Management

Home Compatible Software Configurations Installation User Guide Developer guide Getting started Coding guidelines Documentation guidelines Submitting Changes Issues Usage Examples C++ API C++ Transforms C++ Types Python API Python Transforms Python Types Internal Architecture Overview FAQ Downloads ChangeLog License ### Quick search | # Python Transforms ## Transform ## AllocationTransform
    import PyOpenColorIO as OCIO
    transform = OCIO.AllocationTransform()
    transform.setAllocation(OCIO.Constants.ALLOCATION)
## CDLTransform
    import PyOpenColorIO as OCIO

    cdl = OCIO.CDLTransform()
    # Set the slope, offset, power, and saturation for each channel.
    cdl.setSOP([, , , , , , , , ])
    cdl.setSat([, , ])
    cdl.getSatLumaCoefs()
## 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.
    import PyOpenColorIO as OCIO
    transform = OCIO.ColorSpaceTransform()
## DisplayTransform
    import PyOpenColorIO as OCIO
    transform = OCIO.DisplayTransform()
## ExponentTransform
    import PyOpenColorIO as OCIO
    transform = OCIO.ExponentTransform()
## FileTransform ## GroupTransform ## LogTransform
    import PyOpenColorIO as OCIO
`PyOpenColorIO.LogTransform` is used to define a log transform. The direction of the transform and its numerical base can be specified. ## LookTransform ## MatrixTransform