From 4fc1d9232f906d801f2451a82104f28bddfb392b Mon Sep 17 00:00:00 2001 From: rgthree Date: Sun, 22 Dec 2024 22:36:36 -0500 Subject: [PATCH] Add to Power Prompt widgets. Fixes #396 --- py/power_prompt.py | 3 ++- py/power_prompt_simple.py | 2 +- py/sdxl_power_prompt_postive.py | 6 ++++-- py/sdxl_power_prompt_simple.py | 6 ++++-- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/py/power_prompt.py b/py/power_prompt.py index 5527e61..5fa75bf 100644 --- a/py/power_prompt.py +++ b/py/power_prompt.py @@ -24,7 +24,8 @@ class RgthreePowerPrompt: return { 'required': { 'prompt': ('STRING', { - 'multiline': True + 'multiline': True, + 'dynamicPrompts': True }), }, 'optional': { diff --git a/py/power_prompt_simple.py b/py/power_prompt_simple.py index 4c6221a..5a94cab 100644 --- a/py/power_prompt_simple.py +++ b/py/power_prompt_simple.py @@ -17,7 +17,7 @@ class RgthreePowerPromptSimple(RgthreePowerPrompt): SAVED_PROMPTS_CONTENT=[] return { 'required': { - 'prompt': ('STRING', {'multiline': True}), + 'prompt': ('STRING', {'multiline': True, 'dynamicPrompts': True}), }, 'optional': { "opt_clip": ("CLIP", ), diff --git a/py/sdxl_power_prompt_postive.py b/py/sdxl_power_prompt_postive.py index 25bc1f0..d070da0 100644 --- a/py/sdxl_power_prompt_postive.py +++ b/py/sdxl_power_prompt_postive.py @@ -27,10 +27,12 @@ class RgthreeSDXLPowerPromptPositive: return { 'required': { 'prompt_g': ('STRING', { - 'multiline': True + 'multiline': True, + 'dynamicPrompts': True }), 'prompt_l': ('STRING', { - 'multiline': True + 'multiline': True, + 'dynamicPrompts': True }), }, 'optional': { diff --git a/py/sdxl_power_prompt_simple.py b/py/sdxl_power_prompt_simple.py index da0f211..9774d87 100644 --- a/py/sdxl_power_prompt_simple.py +++ b/py/sdxl_power_prompt_simple.py @@ -28,10 +28,12 @@ class RgthreeSDXLPowerPromptSimple(RgthreeSDXLPowerPromptPositive): return { 'required': { 'prompt_g': ('STRING', { - 'multiline': True + 'multiline': True, + 'dynamicPrompts': True }), 'prompt_l': ('STRING', { - 'multiline': True + 'multiline': True, + 'dynamicPrompts': True }), }, 'optional': {