Minor updates and bug fixes.
[OpenColorIO-Configs.git] / aces_1.0.0 / python / aces_ocio / generate_lut.py
index f9fc699..ac42d58 100755 (executable)
@@ -24,6 +24,9 @@ __status__ = 'Production'
 
 __all__ = ['generate_1d_LUT_image',
            'write_SPI_1d',
+           'write_CSP_1d',
+           'write_CTL_1d',
+           'write_1d',
            'generate_1d_LUT_from_image',
            'generate_3d_LUT_image',
            'generate_3d_LUT_from_image',
@@ -491,6 +494,10 @@ def apply_CTL_to_image(input_image,
 
     if len(ctl_paths) > 0:
         ctlenv = os.environ
+
+        if "/usr/local/bin" not in ctlenv['PATH'].split(':'):
+            ctlenv['PATH'] = "%s:/usr/local/bin" % ctlenv['PATH']
+
         if aces_ctl_directory is not None:
             if os.path.split(aces_ctl_directory)[1] != 'utilities':
                 ctl_module_path = os.path.join(aces_ctl_directory, 'utilities')
@@ -826,19 +833,19 @@ def main():
     else:
         print('3D LUT generation options')
 
-    print('lut                 : %s' % lut)
-    print('format              : %s' % format)
-    print('ctls                : %s' % ctls)
-    print('lut res 1d          : %s' % lut_resolution_1d)
-    print('lut res 3d          : %s' % lut_resolution_3d)
-    print('min value           : %s' % min_value)
-    print('max value           : %s' % max_value)
-    print('input scale         : %s' % input_scale)
-    print('output scale        : %s' % output_scale)
-    print('ctl render params   : %s' % params)
-    print('ctl release path    : %s' % ctl_release_path)
-    print('bit depth of input  : %s' % bit_depth)
-    print('cleanup temp images : %s' % cleanup)
+    print('LUT                 : %s' % lut)
+    print('Format              : %s' % format)
+    print('CTLs                : %s' % ctls)
+    print('LUT Res 1d          : %s' % lut_resolution_1d)
+    print('LUT Res 3d          : %s' % lut_resolution_3d)
+    print('Min Value           : %s' % min_value)
+    print('Max Value           : %s' % max_value)
+    print('Input Scale         : %s' % input_scale)
+    print('Output Scale        : %s' % output_scale)
+    print('CTL Render Params   : %s' % params)
+    print('CTL Release Path    : %s' % ctl_release_path)
+    print('Input Bit Depth     : %s' % bit_depth)
+    print('Cleanup Temp Images : %s' % cleanup)
 
     if generate_1d:
         generate_1d_LUT_from_CTL(lut,
@@ -866,7 +873,7 @@ def main():
                                  ctl_release_path,
                                  format=format)
     else:
-        print(('\n\nNo LUT generated. '
+        print(('\n\nNo LUT generated! '
                'You must choose either 1D or 3D LUT generation\n\n'))