ComfyUI Node

OC Generator

Aggregate multiple OC blocks into one positive prompt string.

By Zhuozhuo-219·Created 2 months ago·Updated 2 months ago· 0
OC Generator
  • oc_block_0
  • positive_prompt
  • blocks_json
  • debug_text
prefix_prompt
suffix_prompt
separator,
dedupetrue
CategoryOC Generator

Inputs (5)

NameTypeDefaultDescription
prefix_promptSTRINGStatic prompt text inserted before all OC block fragments.
suffix_promptSTRINGStatic prompt text appended after all OC block fragments.
separatorSTRING, String used to join prefix, block prompts, and suffix.
dedupeBOOLEANtrueRemove duplicated prompt fragments after block aggregation.
oc_block_0optOC_BLOCKConnect one OC block per socket. Additional sockets can be added dynamically in the UI.

Outputs (3)

NameTypeDescription
positive_promptSTRINGThe final positive prompt assembled from prefix, OC blocks, and suffix.
blocks_jsonSTRINGJSON dump of all received OC blocks after sorting, useful for inspection or future export.
debug_textSTRINGReadable execution summary for each connected block.