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.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user