Nodes/ComfyUI-PromptDrafter-SceneQueue/Scene Queue Distributor
ComfyUI Node

Scene Queue Distributor

How the Scene Queue Distributor feeds your PromptDrafter nodes, one combo at a time

By Carasibana·Created 6 months ago·Updated 6 months ago· 2
Scene Queue Distributor
  • scene_combo
  • combination_tag
  • output_1
  • output_2
  • output_3
  • output_4
  • output_5
  • output_6
  • output_7
  • output_8
  • output_9
  • output_10
  • output_11
  • output_12
  • output_13
  • output_14
  • output_15
  • output_16
  • output_17
  • output_18
  • output_19
  • output_20
  • output_21
  • output_22
  • output_23
  • output_24
sq_groups_config[]

The Scene Queue Distributor is the per-iteration worker of the scene queue system - the half of the pair you almost never place by hand. Drop a Scene Queue Controller and a Distributor is auto-created and wired to it. Then, for every combination the Controller builds, the Distributor loads the assigned preset files and pushes their prompt text straight into your PromptDrafter nodes' text inputs. If the Controller is the grid editor, this is the delivery truck.

How it works

The Controller's scene_combos output is a list (OUTPUT_IS_LIST), so ComfyUI runs the downstream subgraph once per combo - and each of those runs hands the Distributor a single combo object. It parses its hidden sq_groups_config (group order and node type per group), then reads each group's preset JSON from PromptDrafter's saved/ folders and extracts the fields that node type expects:

  • Dual_PromptDrafterpositive_prompt, negative_prompt
  • DualLora_PromptDrafterpositive_prompt, negative_prompt, lora_string
  • Single_PromptDrafterprompt

The 25 STRING outputs you see in the schema aren't you being handed a wall of sockets to wire: ComfyUI's validator needs RETURN_TYPES to cover the highest wired slot index, so the node declares a fixed max (slot 0 + 8 groups × 3 fields). The JavaScript frontend adds and removes the visible slots to match the groups you actually configured.

The outputs

  • combination_tag (STRING) - slot 0, always. A _-separated string built from the scene label and each group's preset label, ready to drop into SaveImage's filename_prefix so every rendered combo gets a distinct filename. This is the one output you'll always use.
  • output_1output_24 (STRING) - the per-group slots, auto-wired to your PromptDrafter nodes. Don't hand-wire these; add or remove PromptDrafter columns in the Controller's editor instead and they rearrange themselves.

The inputs

  • scene_combo (SCENE_COMBO, required) - from the Controller's scene_combos output. The only wire you need to check.
  • sq_groups_config (STRING, optional, hidden) - the JSON group config the frontend manages. Ignore it; it's there so the backend knows which node type each output slot belongs to.

Workflow notes and gotchas

This pack expects a different layout than a normal single-image workflow. PromptDrafter nodes take their text from the Distributor's wired inputs, not from their own widgets - the README is explicit about that. For LoRA, DualLora_PromptDrafter's lora_string gets parsed into its LORA_STACK output, which you wire to a LoRA Loader; the upstream push_lora_on_load sync feature isn't used here, presets drive everything.

If a group has no preset assigned in a given combo, the Distributor quietly emits empty strings - the render still runs, just with blank prompt fields. Missing files are the loud failure instead, caught at the Controller before anything queues. And if you need to hand-edit a PromptDrafter text field mid-debug, v1.0.1 added Disconnect Outputs and Reconnect Outputs buttons on the Distributor: unplug everything, edit, reconnect in one click. Genuinely handy for chasing a single bad combo.

Installing

It ships with ComfyUI-PromptDrafter-SceneQueue - one install covers both nodes. The only requirement is that ComfyUI-PromptDrafter is installed first; there are no other dependencies and nothing to download. Fastest path:

cd ComfyUI/custom_nodes
git clone https://github.com/Carasibana/ComfyUI-PromptDrafter-SceneQueue

…then restart ComfyUI, or grab it from ComfyUI Manager by searching the pack title. If the Distributor never appears, you almost certainly skipped the parent PromptDrafter pack - install that, restart, and the node will show up.

CategoryPromptDrafter

Inputs (2)

NameTypeDefaultDescription
scene_comboSCENE_COMBO
sq_groups_configoptSTRING[]

Outputs (25)

NameTypeDescription
combination_tagSTRING
output_1STRING
output_2STRING
output_3STRING
output_4STRING
output_5STRING
output_6STRING
output_7STRING
output_8STRING
output_9STRING
output_10STRING
output_11STRING
output_12STRING
output_13STRING
output_14STRING
output_15STRING
output_16STRING
output_17STRING
output_18STRING
output_19STRING
output_20STRING
output_21STRING
output_22STRING
output_23STRING
output_24STRING