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_red_colorspaces.py;h=3c88750e065298d6c8bb87f8fe796bd882e69ae5;hp=2bdea9157a69c44066f0f69914f4029918d94512;hb=8697190075f34b4d52c1369b784649605513b156;hpb=ab47928e6f563f2bfd6bb8eadaf2a37f2b3a1e08 diff --git a/aces_1.0.0/python/aces_ocio/create_red_colorspaces.py b/aces_1.0.0/python/aces_ocio/create_red_colorspaces.py index 2bdea91..3c88750 100644 --- a/aces_1.0.0/python/aces_ocio/create_red_colorspaces.py +++ b/aces_1.0.0/python/aces_ocio/create_red_colorspaces.py @@ -10,6 +10,8 @@ from __future__ import division import array import os +import PyOpenColorIO as ocio + import aces_ocio.generate_lut as genlut from aces_ocio.utilities import ColorSpace, mat44_from_mat33 @@ -59,6 +61,11 @@ def create_RED_log_film(gamut, cs.family = 'RED' cs.is_data = False + # A linear space needs allocation variables + if transfer_function == '': + cs.allocation_type = ocio.Constants.ALLOCATION_LG2 + cs.allocation_vars = [-8, 5, 0.00390625] + def cineon_to_linear(code_value): n_gamma = 0.6 black_point = 95