Added support for including the ACES transform ID in the colorspace description....
[OpenColorIO-Configs.git] / aces_1.0.0 / python / aces_ocio / aces_config.py
index 5c7eb98..9272908 100755 (executable)
@@ -319,10 +319,14 @@ def add_colorspace_alias(config,
 
         compact_family_name = 'Aliases'
 
+        description = colorspace.description
+        if colorspace.aces_transform_id:
+            description += "\n\nACES Transform ID : %s" % colorspace.aces_transform_id
+
         ocio_colorspace_alias = ocio.ColorSpace(
             name=alias_name,
             bitDepth=colorspace.bit_depth,
-            description=colorspace.description,
+            description=description,
             equalityGroup=colorspace.equality_group,
             family=compact_family_name,
             isData=colorspace.is_data,
@@ -642,10 +646,14 @@ def create_config(config_data,
 
         print('Creating new color space : %s' % colorspace.name)
 
+        description = colorspace.description
+        if colorspace.aces_transform_id:
+            description += "\n\nACES Transform ID : %s" % colorspace.aces_transform_id
+
         ocio_colorspace = ocio.ColorSpace(
             name=colorspace.name,
             bitDepth=colorspace.bit_depth,
-            description=colorspace.description,
+            description=description,
             equalityGroup=colorspace.equality_group,
             family=colorspace.family,
             isData=colorspace.is_data,
@@ -800,17 +808,17 @@ def create_config(config_data,
         # single_display_name = 'Utility'
         # displays.append(single_display_name)
 
-        linear_display_space_name = config_data['roles']['scene_linear']
+        raw_display_space_name = config_data['roles']['data']        
         log_display_space_name = config_data['roles']['compositing_log']
 
         # Find the newly-prefixed colorspace names
         if prefix:
             #print( prefixed_names )
-            linear_display_space_name = prefixed_names[linear_display_space_name]
+            raw_display_space_name = prefixed_names[raw_display_space_name]
             log_display_space_name = prefixed_names[log_display_space_name]
 
-        config.addDisplay(single_display_name, 'Linear', linear_display_space_name)
-        views.append('Linear')
+        config.addDisplay(single_display_name, 'Raw', raw_display_space_name)
+        views.append('Raw')
         config.addDisplay(single_display_name, 'Log', log_display_space_name)
         views.append('Log')