From d5cbf1c85a16147549cd984f1f0b4b8222cd99e8 Mon Sep 17 00:00:00 2001 From: total1ty Date: Wed, 22 Nov 2023 18:43:49 +0100 Subject: [PATCH] added print_output to PromptScheduleEncodeSDXL class according to other similar classes --- ScheduledNodes.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ScheduledNodes.py b/ScheduledNodes.py index 150f05e..811ee4c 100644 --- a/ScheduledNodes.py +++ b/ScheduledNodes.py @@ -349,7 +349,8 @@ class PromptScheduleEncodeSDXL: "text_g": ("STRING", {"multiline": True, "default": "CLIP_G"}), "clip": ("CLIP", ), "text_l": ("STRING", {"multiline": True, "default": "CLIP_L"}), "clip": ("CLIP", ), "max_frames": ("INT", {"default": 120.0, "min": 1.0, "max": 9999.0, "step": 1.0}), - "current_frame": ("INT", {"default": 0.0, "min": 0.0, "max": 9999.0, "step": 1.0})},# "forceInput": True}),}, + "current_frame": ("INT", {"default": 0.0, "min": 0.0, "max": 9999.0, "step": 1.0}), + "print_output":("BOOLEAN", {"default": False})}, "optional": {"pre_text_G": ("STRING", {"multiline": True, "default": "PRE_G",}),# "forceInput": True}), "app_text_G": ("STRING", {"multiline": True, "default": "APP_G",}),# "forceInput": True}), "pre_text_L": ("STRING", {"multiline": True, "default": "PRE_L",}),# "forceInput": True}), @@ -364,14 +365,14 @@ class PromptScheduleEncodeSDXL: CATEGORY = "FizzNodes 📅🅕🅝/ScheduleNodes" - def animate(self, clip, width, height, crop_w, crop_h, target_width, target_height, text_g, text_l, app_text_G, app_text_L, pre_text_G, pre_text_L, max_frames, current_frame, pw_a, pw_b, pw_c, pw_d): + def animate(self, clip, width, height, crop_w, crop_h, target_width, target_height, text_g, text_l, app_text_G, app_text_L, pre_text_G, pre_text_L, max_frames, current_frame, print_output, pw_a, pw_b, pw_c, pw_d): inputTextG = str("{" + text_g + "}") inputTextL = str("{" + text_l + "}") inputTextG = re.sub(r',\s*}', '}', inputTextG) inputTextL = re.sub(r',\s*}', '}', inputTextL) animation_promptsG = json.loads(inputTextG.strip()) animation_promptsL = json.loads(inputTextL.strip()) - return (interpolate_prompts_SDXL(animation_promptsG, animation_promptsL, max_frames, current_frame, clip, app_text_G, app_text_L, pre_text_G, pre_text_L, pw_a, pw_b, pw_c, pw_d, width, height, crop_w, crop_h, target_width, target_height, ),) + return (interpolate_prompts_SDXL(animation_promptsG, animation_promptsL, max_frames, current_frame, clip, app_text_G, app_text_L, pre_text_G, pre_text_L, pw_a, pw_b, pw_c, pw_d, width, height, crop_w, crop_h, target_width, target_height, print_output,),) # This node schedules the prompt using separate nodes as the keyframes. # The values in the prompt are evaluated in NodeFlowEnd.