X-Git-Url: http://users.mur.at/ms/git/gitweb/?a=blobdiff_plain;f=aces_1.0.0%2Fpython%2Faces_ocio%2Fcolorspaces%2Fsony.py;h=9c7026a5e7622d80b0af7490fa803ecc5fb462b4;hb=07d70535fd63c090b57c754758a0b2ae3ff121ac;hp=ac6738214d66cc30f7a139812ce094c5e83ca396;hpb=9404c06b163b18672794ced12638b6063fc2b8dd;p=OpenColorIO-Configs.git diff --git a/aces_1.0.0/python/aces_ocio/colorspaces/sony.py b/aces_1.0.0/python/aces_ocio/colorspaces/sony.py index ac67382..9c7026a 100644 --- a/aces_1.0.0/python/aces_ocio/colorspaces/sony.py +++ b/aces_1.0.0/python/aces_ocio/colorspaces/sony.py @@ -52,7 +52,7 @@ def create_s_log(gamut, if transfer_function == '': name = 'Linear - %s' % gamut if gamut == '': - name = '%s' % transfer_function + name = 'Curve - %s' % transfer_function cs = ColorSpace(name) cs.description = name @@ -61,6 +61,11 @@ def create_s_log(gamut, cs.family = 'Input/Sony' cs.is_data = False + if gamut and transfer_function: + cs.aces_transform_id = 'IDT.Sony.%s_%s_10i.a1.v1' % ( + transfer_function.replace('-', ''), + gamut.replace('-', '').replace(' ', '_')) + # A linear space needs allocation variables if transfer_function == '': cs.allocation_type = ocio.Constants.ALLOCATION_LG2 @@ -234,7 +239,7 @@ def create_colorspaces(lut_directory, lut_resolution_1d): 'S-Log', lut_directory, lut_resolution_1d, - ["slog1_sgamut"]) + ['slog1_sgamut']) colorspaces.append(s_log1_s_gamut) # *S-Log2* @@ -244,7 +249,7 @@ def create_colorspaces(lut_directory, lut_resolution_1d): 'S-Log2', lut_directory, lut_resolution_1d, - ["slog2_sgamut"]) + ['slog2_sgamut']) colorspaces.append(s_log2_s_gamut) s_log2_s_gamut_daylight = create_s_log( @@ -253,7 +258,7 @@ def create_colorspaces(lut_directory, lut_resolution_1d): 'S-Log2', lut_directory, lut_resolution_1d, - ["slog2_sgamutday"]) + ['slog2_sgamutday']) colorspaces.append(s_log2_s_gamut_daylight) s_log2_s_gamut_tungsten = create_s_log( @@ -262,7 +267,7 @@ def create_colorspaces(lut_directory, lut_resolution_1d): 'S-Log2', lut_directory, lut_resolution_1d, - ["slog2_sgamuttung"]) + ['slog2_sgamuttung']) colorspaces.append(s_log2_s_gamut_tungsten) # *S-Log3* @@ -272,7 +277,7 @@ def create_colorspaces(lut_directory, lut_resolution_1d): 'S-Log3', lut_directory, lut_resolution_1d, - ["slog3_sgamutcine"]) + ['slog3_sgamutcine']) colorspaces.append(s_log3_s_gamut3Cine) s_log3_s_gamut3 = create_s_log( @@ -281,7 +286,7 @@ def create_colorspaces(lut_directory, lut_resolution_1d): 'S-Log3', lut_directory, lut_resolution_1d, - ["slog3_sgamut3"]) + ['slog3_sgamut3']) colorspaces.append(s_log3_s_gamut3) # Linearization Only @@ -291,7 +296,7 @@ def create_colorspaces(lut_directory, lut_resolution_1d): 'S-Log', lut_directory, lut_resolution_1d, - ["crv_slog1"]) + ['crv_slog1']) colorspaces.append(s_log1) s_log2 = create_s_log( @@ -300,7 +305,7 @@ def create_colorspaces(lut_directory, lut_resolution_1d): 'S-Log2', lut_directory, lut_resolution_1d, - ["crv_slog2"]) + ['crv_slog2']) colorspaces.append(s_log2) s_log3 = create_s_log( @@ -309,7 +314,7 @@ def create_colorspaces(lut_directory, lut_resolution_1d): 'S-Log3', lut_directory, lut_resolution_1d, - ["crv_slog3"]) + ['crv_slog3']) colorspaces.append(s_log3) # Primaries Only @@ -319,7 +324,7 @@ def create_colorspaces(lut_directory, lut_resolution_1d): 'S-Log', lut_directory, lut_resolution_1d, - ["lin_sgamut"]) + ['lin_sgamut']) colorspaces.append(s_gamut) s_gamut_daylight = create_s_log( @@ -328,7 +333,7 @@ def create_colorspaces(lut_directory, lut_resolution_1d): 'S-Log2', lut_directory, lut_resolution_1d, - ["lin_sgamutday"]) + ['lin_sgamutday']) colorspaces.append(s_gamut_daylight) s_gamut_tungsten = create_s_log( @@ -337,7 +342,7 @@ def create_colorspaces(lut_directory, lut_resolution_1d): 'S-Log2', lut_directory, lut_resolution_1d, - ["lin_sgamuttung"]) + ['lin_sgamuttung']) colorspaces.append(s_gamut_tungsten) s_gamut3Cine = create_s_log( @@ -346,7 +351,7 @@ def create_colorspaces(lut_directory, lut_resolution_1d): 'S-Log3', lut_directory, lut_resolution_1d, - ["lin_sgamut3cine"]) + ['lin_sgamut3cine']) colorspaces.append(s_gamut3Cine) s_gamut3 = create_s_log( @@ -355,7 +360,7 @@ def create_colorspaces(lut_directory, lut_resolution_1d): 'S-Log3', lut_directory, lut_resolution_1d, - ["lin_sgamut3"]) + ['lin_sgamut3']) colorspaces.append(s_gamut3) return colorspaces