diff options
| author | 2026-06-25 21:36:21 -0400 | |
|---|---|---|
| committer | 2026-06-25 21:36:21 -0400 | |
| commit | d3a64c89a7b5dd9878a46ab6bceeab6362526be4 (patch) | |
| tree | c5d7b98257ef44bd15dba779a3125a1c611b057e /Scripts | |
| parent | c6900a75360d31a2eb4a494c4c6438610c92ae37 (diff) | |
| download | WorldTuningTool-d3a64c89a7b5dd9878a46ab6bceeab6362526be4.tar.gz WorldTuningTool-d3a64c89a7b5dd9878a46ab6bceeab6362526be4.tar.bz2 WorldTuningTool-d3a64c89a7b5dd9878a46ab6bceeab6362526be4.zip | |
LUTs wip
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'Scripts')
| -rwxr-xr-x | Scripts/convert_luts.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Scripts/convert_luts.sh b/Scripts/convert_luts.sh new file mode 100755 index 0000000..4778b02 --- /dev/null +++ b/Scripts/convert_luts.sh @@ -0,0 +1,21 @@ +#! /usr/bin/env sh +# https://github.com/michelerenzullo/LUTify/blob/main/LUTify.py +# ----- +# diff --git a/LUTify.py b/LUTify.py +# index 71983ac..24020db 100644 +# --- a/LUTify.py +# +++ b/LUTify.py +# @@ -162,7 +162,8 @@ if args.input.lower().endswith((".cube",".png",".jpg",".jpeg",".tiff")) and args +# title = re.search("[^\\\/]+(?=\.[\w]+$)",args.input)[0] +# if args.input.lower().endswith(".cube"): +# file = open(args.input,'r').read() +# - o_array = np.array([i.lower().replace(',', '').split() for i in re.findall("\n[+-]?[0-9]*[.]?[0-9]+\s[+-]?[0-9]*[.]?[0-9]+\s[+-]?[0-9]*[.]?[0-9]+",file)],dtype=float).reshape(-1) +# + mfloat = "[+-]?[0-9]*[.]?[0-9]*[eE]?[+-]?[0-9]+" +# + o_array = np.array([i.lower().replace(',', '').split() for i in re.findall(f"\n{mfloat}\s{mfloat}\s{mfloat}",file)],dtype=float).reshape(-1) +# lutSize = int(re.search("_SIZE.*?(\d+)",file).group(1)) +# input_title = re.search("TITLE.?[\"'](.*?)[\"']",file) +# del file +# ----- +for var in "$@"; do + python3 LUTify.py -i "$var" -o "$var.32.cube" -s 32 -m tetrahedral +done |