Hello
I am trying to use maketx in the command line (Linux) to batch create my .tx files.
I am using an .ocio file within Maya and when I generate .tx from within Maya results are correct.
Using the --colorconfig flag with maketx (or oiiotool) is not working for me though. Disregarding other flags should my command just be:
maketx --colorconfig /path.../config.ocio /path.../file.jpg
The OCIO environment variable is not set system wide, but if I have the full path to it, that should be enough?
Also I have tried to unpick the command Maya uses when creating .tx from there and it uses
maketx /path.../file.jpg --colorconvert "Utility - sRGB - Texture" acescg
When I do that from the command line I get an error 'Creating Color Processor' even after I set the OCIO variable within the shell.
Any thoughts anyone?
Thanks
Dave
If I take the command that Maya used, and add --colorconfig, that works for me.
C:\Users\blairs>%A%\bin\maketx C:\Users\blairs\Documents\maya\projects\default\sourceimages\test\test.1005.jpg --opaque-detect --constant-color-detect --monochrome-detect --fixnan box3 --oiio --attrib tiff:half 1 -v --unpremult --oiio -u --colorconvert sRGB ACEScg --format exr -d half --compression dwaa" WARNING: node "color_manager_syncolor" is already installed prep 0.03s (123.0 MB) Reading file: C:\Users\blairs\Documents\maya\projects\default\sourceimages\test\test.1005.jpg read "C:\Users\blairs\Documents\maya\projects\default\sourceimages\test\test.1005.jpg" 0.64s (173.4 MB) misc2 0.00s (173.4 MB) pixelstats 0.53s (173.4 MB) misc2b 0.00s (173.4 MB) Converting from colorspace sRGB to colorspace ACEScg make_texture ERROR: Error Creating Color Processor: Arnold Color Managers can only convert from and to working linear color space, getProcessor C:\Users\blairs>%A%\bin\maketx C:\Users\blairs\Documents\maya\projects\default\sourceimages\test\test.1005.jpg --opaque-detect --constant-color-detect --monochrome-detect --fixnan box3 --oiio --attrib tiff:half 1 -v --unpremult --oiio -u --colorconfig C:\solidangle\arnold\Arnold-7.0.0.0-windows\ocio\configs\arnold\config.ocio --colorconvert sRGB ACEScg --format exr -d half --compression dwaa" WARNING: node "color_manager_syncolor" is already installed using config file C:\solidangle\arnold\Arnold-7.0.0.0-windows\ocio\configs\arnold\config.ocio prep 0.02s (123.4 MB) Reading file: C:\Users\blairs\Documents\maya\projects\default\sourceimages\test\test.1005.jpg read "C:\Users\blairs\Documents\maya\projects\default\sourceimages\test\test.1005.jpg" 0.53s (173.7 MB) misc2 0.00s (173.7 MB) pixelstats 0.49s (173.7 MB) misc2b 0.00s (173.7 MB) Converting from colorspace sRGB to colorspace ACEScg Unpremulting image... color convert 1.55s (375.2 MB) misc3 0.01s (324.9 MB) resize & data convert 0.00s (324.9 MB) SHA-1: 80F49171C7827D985CE86342430987F4B8C49D75 SHA-1 hash 0.52s (324.9 MB) AverageColor: 0.373445,0.378766,0.369441 misc4 0.00s (324.9 MB) maketx run time (seconds): 3.12 file read: 0.53 file write: 0.00 initial resize: 0.00 hash: 0.52 pixelstats: 0.49 mip computation: 0.00 color convert: 1.55 unaccounted: 2.07 ( 0.02 0.00 0.00 0.01 0.00) maketx peak memory used: 375.2 MB