colour.io.write_LUT_SonySPI3D#

colour.io.write_LUT_SonySPI3D(LUT: 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
Returns

Definition success.

Return type

bool

Warning

  • If a LUTSequence class instance is passed as LUT, 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")