proper output of prompt lists comfy way

This commit is contained in:
Dreaming Computers
2026-01-11 13:12:45 +07:00
parent 2a0f2fd9d4
commit 349f796c10
2 changed files with 20 additions and 1 deletions
+17 -1
View File
@@ -666,6 +666,7 @@ Outputs:
"STRING",
"INT",
"STRING",
"STRING",
)
RETURN_NAMES = (
"prompt 1",
@@ -679,6 +680,21 @@ Outputs:
"prompt 9",
"count",
"prompts_list",
"prompts_list_seq",
)
OUTPUT_IS_LIST = (
False,
False,
False,
False,
False,
False,
False,
False,
False,
False,
False,
True,
)
FUNCTION = "parse"
CATEGORY = "kie/helpers"
@@ -715,7 +731,7 @@ Outputs:
padded = prompts[:9] + [""] * (9 - len(prompts))
count = len(prompts)
return (*padded, count, prompts)
return (*padded, count, prompts, prompts)
NODE_CLASS_MAPPINGS = {
+3
View File
@@ -57,6 +57,9 @@ Object format (underscore keys):
- **prompts_list**
Raw list of prompts for future automation or batching (not stringified).
- **prompts_list_seq**
Prompts as a ComfyUI list output (OUTPUT_IS_LIST) for sequential downstream processing.
---
## Grid wiring tips