Merge pull request #59 from jn-jairo/sort-file-list

Sort file names in lut and text node
This commit is contained in:
Matteo Spinelli
2024-07-23 09:24:37 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -934,7 +934,7 @@ class ImageApplyLUT:
return { return {
"required": { "required": {
"image": ("IMAGE",), "image": ("IMAGE",),
"lut_file": ([f for f in os.listdir(LUTS_DIR) if f.lower().endswith('.cube')], ), "lut_file": (sorted([f for f in os.listdir(LUTS_DIR) if f.lower().endswith('.cube')]), ),
"gamma_correction": ("BOOLEAN", { "default": True }), "gamma_correction": ("BOOLEAN", { "default": True }),
"clip_values": ("BOOLEAN", { "default": True }), "clip_values": ("BOOLEAN", { "default": True }),
"strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step": 0.1 }), "strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step": 0.1 }),
+1 -1
View File
@@ -10,7 +10,7 @@ class DrawText:
return { return {
"required": { "required": {
"text": ("STRING", { "multiline": True, "dynamicPrompts": True, "default": "Hello, World!" }), "text": ("STRING", { "multiline": True, "dynamicPrompts": True, "default": "Hello, World!" }),
"font": ([f for f in os.listdir(FONTS_DIR) if f.endswith('.ttf') or f.endswith('.otf')], ), "font": (sorted([f for f in os.listdir(FONTS_DIR) if f.endswith('.ttf') or f.endswith('.otf')]), ),
"size": ("INT", { "default": 56, "min": 1, "max": 9999, "step": 1 }), "size": ("INT", { "default": 56, "min": 1, "max": 9999, "step": 1 }),
"color": ("STRING", { "multiline": False, "default": "#FFFFFF" }), "color": ("STRING", { "multiline": False, "default": "#FFFFFF" }),
"background_color": ("STRING", { "multiline": False, "default": "#00000000" }), "background_color": ("STRING", { "multiline": False, "default": "#00000000" }),