AcademySoftwareFoundation / OpenColorIO

A color management framework for visual effects and animation.
https://opencolorio.org
BSD 3-Clause "New" or "Revised" License
1.76k stars 434 forks source link

ocioview: MatrixTransform input parameter persistence #1880

Open michdolan opened 10 months ago

michdolan commented 10 months ago

When editing a MatrixTransform in ocioview, you have the option of using a number of matrix constructors (fit, sat, scale, view). These take simplified input parameters and populate the transform's matrix and offset arrays. The problem is that there is currently no persistence for the chosen input method. The constructors work for initial entry, but reloading the transform from the config loses the input parameters.

MatrixTransform supports storage of FormatMetadata, which is primarily used when transforms are created from reading a CLF/CTF file. An element could be added to the transform's metadata to store ocioview data including Matrix parameters. This would also allow use of new transform constructors, such as using colour-science data to easily populate matrices with color primary or chromatic adaptation transforms.