colour.io.write_LUT_SonySPI3D#
- colour.io.write_LUT_SonySPI3D(LUT: LUT3D | LUTSequence, path: str | Path, decimals: int = 7) bool [source]#
Write given LUT to given Sony .spi3d LUT file.
- Parameters:
LUT (LUT3D | LUTSequence) –
LUT3D
orLUTSequence
class instance to write at given 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")