Merge branch 'main' of https://github.com/FizzleDorf/ComfyUI_FizzNodes
This commit is contained in:
+4
-3
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user