Skip to content

Commit

Permalink
Fixed range function error in nuke colorlookup examples (AcademySoftw…
Browse files Browse the repository at this point in the history
…areFoundation#2096)

* Error found: ocio_to_colorlookup_all.py

Signed-off-by: Seif Ashraf <[email protected]>

* Update colorlookup_to_spi1d.py

Signed-off-by: Seif Ashraf <[email protected]>

* Update ocio_to_colorlookup_rgb.py

Signed-off-by: Seif Ashraf <[email protected]>

---------

Signed-off-by: Seif Ashraf <[email protected]>
Co-authored-by: Doug Walker <[email protected]>
  • Loading branch information
seifibrahim32 and doug-walker authored Dec 8, 2024
1 parent dafefe6 commit 0f06f04
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion share/nuke/examples/colorlookup_to_spi1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
2 changes: 1 addition & 1 deletion share/nuke/examples/ocio_to_colorlookup_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion share/nuke/examples/ocio_to_colorlookup_rgb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 0f06f04

Please sign in to comment.