From c3f3d62106ccf7bd9d7074acf9f559b218bc763d Mon Sep 17 00:00:00 2001 From: cubiq Date: Wed, 28 Aug 2024 17:33:53 +0200 Subject: [PATCH] luts cleanup --- image.py | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/image.py b/image.py index 62ceb7e..34e58d0 100644 --- a/image.py +++ b/image.py @@ -926,33 +926,12 @@ class ImagePosterize: return(image,) - -script_directory = Path(__file__).parent -folder_paths.add_model_folder_path("luts", (script_directory / "luts").as_posix()) +SCRIPT_DIR = Path(__file__).parent +folder_paths.add_model_folder_path("luts", (SCRIPT_DIR / "luts").as_posix()) folder_paths.add_model_folder_path( "luts", (Path(folder_paths.models_dir) / "luts").as_posix() ) -class StringToLuts: - @classmethod - def INPUT_TYPES(cls): - return { - "required": { - "lut_file_name": ( - "STRING", - {"multiline": False, "default": "lut_file.cube"}, - ), - } - } - - RETURN_TYPES = (folder_paths.get_filename_list("luts"),) - RETURN_NAMES = ("lut_file",) - FUNCTION = "execute" - CATEGORY = "essentials/image processing" - - def execute(self, lut_file_name): - return (lut_file_name,) - # From https://github.com/yoonsikp/pycubelut/blob/master/pycubelut.py (MIT license) class ImageApplyLUT: @classmethod