colour.io.write_LUT_SonySPI3D¶
- colour.io.write_LUT_SonySPI3D(LUT: Union[colour.io.luts.lut.LUT3D, colour.io.luts.sequence.LUTSequence], path: str, decimals: int = 7) bool [source]¶
Write given LUT to given Sony .spi3d LUT file.
- Parameters
LUT (Union[colour.io.luts.lut.LUT3D, colour.io.luts.sequence.LUTSequence]) –
LUT3D
orLUTSequence
class instance to write at given path.path (str) – LUT path.
decimals (int) – Formatting decimals.
- Returns
Definition success.
- Return type
Warning
If a
LUTSequence
class instance is passed asLUT
, the first LUT in the LUT sequence will be used.
Examples
Writing a 3D Sony .spi3d LUT:
>>> LUT = LUT3D( ... LUT3D.linear_table(16) ** (1 / 2.2), ... 'My LUT', ... np.array([[0, 0, 0], [1, 1, 1]]), ... comments=['A first comment.', 'A second comment.']) >>> write_LUT_SonySPI3D(LUT, 'My_LUT.cube')