Coder Social home page Coder Social logo

pylut's People

Contributors

bitdeli-chef avatar bradleysepos avatar gregcotten avatar khaja84 avatar so-rose avatar wilg avatar znemesis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pylut's Issues

Error Combining LUT

I get the following error when I try to combine LUTs

lut = LUT.FromCubeFile("C:/Users/Junnu/Desktop/LUT1.cube")
lut2 = LUT.FromCubeFile("C:/Users/Junnu/Desktop/LUT2.cube")
lut3 = lut.CombineWithLUT(lut2)

Traceback (most recent call last):
File "<pyshell#5>", line 1, in
lut3 = lut.CombineWithLUT(lut2)
File "C:\Python27\lib\site-packages\pylut\pylut.py", line 279, in CombineWithLUT
newLattice[x, y, z] = otherLUT.ColorFromColor(selfColor)
File "C:\Python27\lib\site-packages\pylut\pylut.py", line 418, in ColorFromColor
return self.ColorAtInterpolatedLatticePoint(color.r * (cubeSize-1), color.g * (cubeSize-1), color.b * (cubeSize-1))
File "C:\Python27\lib\site-packages\pylut\pylut.py", line 451, in ColorAtInterpolatedLatticePoint
C010 = self.ColorAtLatticePoint(lowerRedPoint, lowerGreenPoint, upperBluePoint)
File "C:\Python27\lib\site-packages\pylut\pylut.py", line 429, in ColorAtLatticePoint
return self.lattice[redPoint, greenPoint, bluePoint]
IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices

Here are the cube LUT files I used
Desktop.zip

integer conversion and depth problem with nuke3DL

I was getting pylut 1.4.9 via pycharm venv, and works under python 3.6.5.
I have converted old print and xrange statements to python 3 version.

It seems that all of the From and To methods suffer from improper indices now, where they should be floored but was left as float. Since numpy no longer support float indices, I guess encapsulating with a int() will solve the problem.

Also I was trying this module with photoshop original LUTs, some nuke3DL file has entries that goes up to 12-bit color depth, but the first row ends with 1023, which by the FromNuke3DLFile() method should imply 10-bit depth and will lead to a lattice being 4 times brighter than the file was originally intended.
I think the correct outputDepth should actually be +2, but am not sure whether it is a common problem or not.

latest pypi release: python-3 syntax error

Fails with python-3 (current latest pypi version 1.4.9)

  File "[...]/bin/pylut", line 83
    print "Warning: reverse can take a long time."
                                                 ^
SyntaxError: Missing parentheses in call to 'print'

These LUTs doesn't work. )-:

https://gist.github.com/andrewfinch/7801858

Traceback (most recent call last):
  File "/usr/local/bin/pylut", line 82, in <module>
    lut, filetype = LUTFromFile(filePath)
  File "/usr/local/bin/pylut", line 37, in LUTFromFile
    lut = LUT.FromNuke3DLFile(lutFilePath)
  File "/Library/Python/2.7/site-packages/pylut/pylut.py", line 386, in FromNuke3DLFile
    outputDepth = int(math.log(int(lutFileLines[meshLineIndex].split()[-1])+1,2))
IndexError: list index out of range

LUT is not defined

even i have installed in the environment, but it gives the error 'name pylut is not defined'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.