colour.io.write_LUT_Cinespace#

colour.io.write_LUT_Cinespace(LUT: LUT1D | LUT3x1D | LUT3D | LUTSequence, path: str | PathLike, decimals: int = 7) bool[source]#

Write the specified LUT to the specified Cinespace .csp LUT file.

Parameters:
Returns:

Definition success.

Return type:

bool

References

[RisingSResearch]

Examples

Writing a 3x1D Cinespace .csp LUT:

>>> from colour.algebra import spow
>>> domain = np.array([[-0.1, -0.2, -0.4], [1.5, 3.0, 6.0]])
>>> LUT = LUT3x1D(
...     spow(LUT3x1D.linear_table(16, domain), 1 / 2.2),
...     "My LUT",
...     domain,
...     comments=["A first comment.", "A second comment."],
... )
>>> write_LUT_Cinespace(LUT, "My_LUT.cube")  

Writing a 3D Cinespace .csp LUT:

>>> domain = np.array([[-0.1, -0.2, -0.4], [1.5, 3.0, 6.0]])
>>> LUT = LUT3D(
...     spow(LUT3D.linear_table(16, domain), 1 / 2.2),
...     "My LUT",
...     domain,
...     comments=["A first comment.", "A second comment."],
... )
>>> write_LUT_Cinespace(LUT, "My_LUT.cube")