X-Git-Url: http://users.mur.at/ms/git/gitweb/?p=OpenColorIO-Configs.git;a=blobdiff_plain;f=aces_1.0.0%2Fpython%2Faces_ocio%2Fcreate_general_colorspaces.py;h=7064a5742b78da85d377e40ab099c1e62a329220;hp=410f8443033a3c961e27b6048d53d333f7dd68f4;hb=8697190075f34b4d52c1369b784649605513b156;hpb=ab47928e6f563f2bfd6bb8eadaf2a37f2b3a1e08 diff --git a/aces_1.0.0/python/aces_ocio/create_general_colorspaces.py b/aces_1.0.0/python/aces_ocio/create_general_colorspaces.py index 410f844..7064a57 100644 --- a/aces_1.0.0/python/aces_ocio/create_general_colorspaces.py +++ b/aces_1.0.0/python/aces_ocio/create_general_colorspaces.py @@ -7,6 +7,8 @@ Implements support for general colorspaces conversions and transfer functions. from __future__ import division +import PyOpenColorIO as ocio + import aces_ocio.create_aces_colorspaces as aces from aces_ocio.utilities import ColorSpace, mat44_from_mat33 @@ -53,6 +55,10 @@ def create_generic_matrix(name='matrix', cs.family = 'Utility' cs.is_data = False + # A linear space needs allocation variables + cs.allocation_type = ocio.Constants.ALLOCATION_LG2 + cs.allocation_vars = [-8, 5, 0.00390625] + cs.to_reference_transforms = [] if to_reference_values: for matrix in to_reference_values: @@ -152,7 +158,7 @@ def create_colorspaces(lut_directory, -0.0032853314, 0.0099796402, 0.9933056912] cs = create_generic_matrix( - 'Linear - ProPhoto', + 'Linear - RIMM ROMM (ProPhoto)', from_reference_values=[AP0_to_RIMM], aliases=["lin_prophoto", "lin_rimm"]) colorspaces.append(cs)