colour.io.write_LUT_SonySPI3D

colour.io.write_LUT_SonySPI3D(LUT, path, decimals=7)[source]

Writes given LUT to given Sony .spi3d LUT file.

Parameters
  • LUT (LUT3D) – LUT3D or LUTSequence class instance to write at given path.

  • path (unicode) – LUT path.

  • decimals (int, optional) – Formatting decimals.

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')