Re: [pyOpenColorIO] get LUT type ?

Jeremy Selan <jeremy...@...>

Not directly.

The issue that makes this complex is that some lut files (such as csp) can contain both 1D and 3D luts together.  So the distinction between what should be considered 1-D, vs 3-D isn't always clear.  From OCIO's perspective even a CDL transform (.cc) is considered a 'LUT'.  Which would that be?

One alternative idea that may suffice for your needs would be to get the processor object (specific to the LUT file), and then call:

> processor.hasChannelCrosstalk()

I believe this is appropriately answered for all the lut types, and would let you accurately determine whether a 1-D plot is sufficient to graph the color transform.  It would also 'just work' then for all the underlying transform types, even those that use CDLs, log allocations, etc.

-- Jeremy

On Wed, Aug 21, 2013 at 7:38 AM, Marie Fétiveau <m...@...> wrote:
Hello !

I wrote a python script to plot 1D and 3D LUTs.
It uses pyOpenColorIO to read and process LUTs and matplotlib to plot them.

For the moment, I have to specify manually if the LUT is 1D or 3D to plot a curve or a cube.

So the question is : is there a way to get this information from OpenColorIO and through the binding ?

Thanks !


You received this message because you are subscribed to the Google Groups "OpenColorIO Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ocio-dev+u...@....
For more options, visit

Join to automatically receive all group messages.