From 35075fa357e4fbd56ae47686302b8c9d8a1507ec Mon Sep 17 00:00:00 2001 From: Meisoftcoltd <38667978+Meisoftcoltd@users.noreply.github.com> Date: Sat, 23 May 2026 13:13:27 +0000 Subject: [PATCH] fix(loop.py): Remove OUTPUT_IS_LIST to enable automatic unwrap in ComfyUI The `OUTPUT_IS_LIST = (True, True, True, True, True)` assignment in `AutoLoopCalculatorTTSBatch` was preventing ComfyUI from automatically unwrapping 1-item lists, causing downstream nodes to crash with TypeErrors (expecting raw strings/integers but getting lists). By removing this attribute while keeping `INPUT_IS_LIST = True`, ComfyUI can now safely process inputs as batches while unwrapping and forwarding primitive values to the next nodes. --- loop.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/loop.py b/loop.py index 50392b8..6d1f001 100644 --- a/loop.py +++ b/loop.py @@ -118,8 +118,9 @@ class AutoLoopCalculatorTTSBatch: } } + # 💡 FIX: Mantenemos INPUT_IS_LIST para absorber el batch, pero ELIMINAMOS OUTPUT_IS_LIST + # para que ComfyUI desempaquete las salidas automáticamente. INPUT_IS_LIST = True - OUTPUT_IS_LIST = (True, True, True, True, True) RETURN_TYPES = ("STRING", "INT", "INT", "STRING", "STRING") RETURN_NAMES = ("current_text", "current_index", "total_chunks", "current_file_name", "log")