From 7156c6289b83b2411b2a16d08178ad7573bd4cc4 Mon Sep 17 00:00:00 2001 From: Kamil Krzyzanowski Date: Fri, 24 Nov 2023 21:06:53 +0100 Subject: [PATCH] Fix TextWildcards not disabling dynamicPrompts ComfyUI has built-in dynamic prompts now, though they only support simple {a|b} and not the more advanced {2$$-$$a|b|c} dynamic prompts with nesting. In addition built-in dynamic prompts would overwrite the prompt in the field when trying to load generation info. By setting "dynamicPrompts" to False, we disable that functionality so this node can do it's job properly again. --- TextWildcards.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TextWildcards.py b/TextWildcards.py index 1b153c2..04429b1 100644 --- a/TextWildcards.py +++ b/TextWildcards.py @@ -15,7 +15,7 @@ class TextWildcards: def INPUT_TYPES(s): return { "required": { - "text": ("STRING", {"multiline": True}), + "text": ("STRING", {"multiline": True, "dynamicPrompts": False}), "seed": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff}), } @@ -30,4 +30,4 @@ def encode(self, seed, text): print(f"[green]text : [/green]",text) r=wildcards.run(text) print(f"[green]result : [/green]",r) - return (r, r) \ No newline at end of file + return (r, r)