From 3393ce9c1092993fe2e42e6c982ac93781af2003 Mon Sep 17 00:00:00 2001 From: Seif Ashraf Date: Mon, 18 Nov 2024 22:06:07 +0200 Subject: [PATCH 1/3] Error found: ocio_to_colorlookup_all.py Signed-off-by: Seif Ashraf --- share/nuke/examples/ocio_to_colorlookup_all.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/nuke/examples/ocio_to_colorlookup_all.py b/share/nuke/examples/ocio_to_colorlookup_all.py index 83d15c7430..69f19bd58f 100644 --- a/share/nuke/examples/ocio_to_colorlookup_all.py +++ b/share/nuke/examples/ocio_to_colorlookup_all.py @@ -27,7 +27,7 @@ def Fit(value, fromMin, fromMax, toMin, toMax): return (value - fromMin) / (fromMax - fromMin) * (toMax - toMin) + toMin SIZE = 2**10 -for i in xrange(SIZE): +for i in range(SIZE): x = i/(SIZE-1.0) x = Fit(x, 0.0, 1.0, -0.125, 1.5) From aa5dc0f01c21b13cb4bc2f9bc3ac1eae698e9c4c Mon Sep 17 00:00:00 2001 From: Seif Ashraf Date: Mon, 18 Nov 2024 22:06:26 +0200 Subject: [PATCH 2/3] Update colorlookup_to_spi1d.py Signed-off-by: Seif Ashraf --- share/nuke/examples/colorlookup_to_spi1d.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/nuke/examples/colorlookup_to_spi1d.py b/share/nuke/examples/colorlookup_to_spi1d.py index c5e9814ee9..241dd24a54 100644 --- a/share/nuke/examples/colorlookup_to_spi1d.py +++ b/share/nuke/examples/colorlookup_to_spi1d.py @@ -19,7 +19,7 @@ def WriteSPI1D(filename, fromMin, fromMax, data): SIZE = 2**10 data = [] -for i in xrange(SIZE): +for i in range(SIZE): x = i/(SIZE-1.0) data.append(knob.getValueAt(x)) From a72aaf00f10750d90c455a5a4cab5ebf201cf23c Mon Sep 17 00:00:00 2001 From: Seif Ashraf Date: Mon, 18 Nov 2024 22:06:38 +0200 Subject: [PATCH 3/3] Update ocio_to_colorlookup_rgb.py Signed-off-by: Seif Ashraf --- share/nuke/examples/ocio_to_colorlookup_rgb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/nuke/examples/ocio_to_colorlookup_rgb.py b/share/nuke/examples/ocio_to_colorlookup_rgb.py index af847d6b4f..e5016d8e08 100644 --- a/share/nuke/examples/ocio_to_colorlookup_rgb.py +++ b/share/nuke/examples/ocio_to_colorlookup_rgb.py @@ -21,7 +21,7 @@ SIZE = 11 -for i in xrange(SIZE): +for i in range(SIZE): x = i/(SIZE-1.0) y = processor.applyRGB((x,x,x))