X-Git-Url: http://users.mur.at/ms/git/gitweb/?a=blobdiff_plain;f=aces_1.0.0%2Fpython%2Faces_ocio%2FgenerateLUT.py;h=53f86e1b9f7aeb42032d38f35979c1f2c72a1719;hb=48d67eb8a5804cd9cabf0a22c3f421502b983b24;hp=8e420aa4afdb4bd7865d7f54d413bb8b23c9bb76;hpb=1f6e648af71fe0649f971c33f3624b1d5a780214;p=OpenColorIO-Configs.git diff --git a/aces_1.0.0/python/aces_ocio/generateLUT.py b/aces_1.0.0/python/aces_ocio/generateLUT.py index 8e420aa..53f86e1 100644 --- a/aces_1.0.0/python/aces_ocio/generateLUT.py +++ b/aces_1.0.0/python/aces_ocio/generateLUT.py @@ -2,27 +2,8 @@ # -*- coding: utf-8 -*- """ -build instructions for osx for needed packages. - -#opencolorio -brew install -vd opencolorio --with-python - -#openimageio -brew tap homebrew/science - -# optional installs -brew install -vd libRaw -brew install -vd OpenCV - -brew install -vd openimageio --with-python - -#ctl -brew install -vd CTL - -#opencolorio - again. -# this time, 'ociolutimage' will build because openimageio is installed -brew uninstall -vd opencolorio -brew install -vd opencolorio --with-python +Defines objects to generate various kind of 1d, 2d and 3d LUTs in various file +formats. """ import array @@ -150,7 +131,7 @@ def generate1dLUTFromImage(ramp1dPath, Return value description. """ - if outputPath == None: + if outputPath is None: outputPath = ramp1dPath + ".spi1d" # open image @@ -215,7 +196,7 @@ def generate3dLUTFromImage(ramp3dPath, outputPath=None, resolution=32): Return value description. """ - if outputPath == None: + if outputPath is None: outputPath = ramp3dPath + ".spi3d" args = ["--extract",