From d04da713af94b05b52a1cbc80521104719d8785f Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 28 Dec 2025 17:56:13 +0700 Subject: [PATCH] feat: Use `IO.ANY` for trigger input type, adding compatibility for older ComfyUI versions. --- load_image_sequence.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/load_image_sequence.py b/load_image_sequence.py index 2d8daed..e2135b7 100644 --- a/load_image_sequence.py +++ b/load_image_sequence.py @@ -102,13 +102,20 @@ Loads a sequence of images from disk using a pattern. +try: + from comfy.comfy_types.node_typing import IO +except ImportError: + # Fallback for older ComfyUI versions + class IO: + ANY = "*" + class BatchLoadImageSequenceWithTrigger(BatchLoadImageSequence): @classmethod def INPUT_TYPES(cls): inputs = BatchLoadImageSequence.INPUT_TYPES() # Move to optional but with forceInput to allow any connection inputs["optional"] = { - "trigger": ("*", {"forceInput": True}), # Any type trigger + "trigger": (IO.ANY, {"forceInput": True}), # Any type trigger } return inputs