OpenColorIO

Open Source Color Management

OpenColorIO 1.0.6 documentation

Python: AllocationTransform

Examples of Use

import PyOpenColorIO as OCIO

transform = OCIO.AllocationTransform()
transform.setAllocation(OCIO.Constants.ALLOCATION)
class AllocationTransform

Respans the ‘expanded’ range into the specified (often compressed) range.

Performs both squeeze (offset) and log transforms.

AllocationTransform.getAllocation()

Returns the allocation specified in the transform. Allocation is an enum, defined in Constants.

Returns:Allocation
Return type:string
AllocationTransform.setAllocation(&hwalloc)

Sets the allocation of the transform.

Parameters:hwalloc (object) – Allocation
AllocationTransform.getVars()

Returns the allocation values specified in the transform.

Returns:allocation values
Return type:list of floats
AllocationTransform.setVars(&pyvars)

Sets the allocation in the transform.

Parameters:pyvars (object) – list of floats