proper output of prompt lists comfy way
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user