Graph walkers marked every WP Toggles variable internal, so the Assembler showed none. Each toggle now has a globe (internal by default), Pick one gets a node-wide style, the Value field is a rich input that warns about inline picks and missing variables, and toggles drag into and out of groups.
2.1 KiB
2.1 KiB
WP Context Injector
Turns any ComfyUI output (text, a LoRA name, a number) into a $variable the rest of the pipeline can use.
Inputs and outputs
- upstream (in)
context: Optional. Another WP Context, Injector, Model Info or Loop to add to. Only nodes after the injector see its variables. - input_0 … input_9 (in): Wire any ComfyUI output (text, a LoRA name, a number) into the next free input_N. Each wired input becomes a row; a new free one appears as you wire, up to 10.
- context (out)
context: The variables from before, plus one per row.
Row options
- Name: The $variable the value becomes. Letters, digits and underscores, starting with a letter.
- Template: Optional. Wrap the value in text, e.g. wearing
input_0. Leave empty to use the value as it is.$ prints a dollar sign. Inline {a|b} picks need a seed, so they print as written (the editor warns). - Negative: Optional negative words for this variable (it can use $input_0 too, so another node can write it). Only reaches an Assembler that prints the variable. Rows with one show a NEG badge.
- Hide from prompt (globe): The variable still reaches combines and derivations, but prints nothing in the prompt.
How to use
- Drag wires from external nodes into the slot sockets.
- Each connected slot adds a row. Type the variable name (e.g.
style). - Optionally tick internal to keep it out of the prompt while combines and derivations can still read it.
- Optionally write a template, like
I love $input_0: the wired value goes where$input_0is. - Optionally write a Negative (row Edit panel, under Template) with the same
$slotgrammar. It replaces the variable's negative words and reaches only Assemblers that render the variable. Template rows take one too.
Tips
- Rows can be reordered freely.
- Names use letters, digits and underscores, and start with a letter.
- Capped at 10 sockets. Chain a second injector if you need more.
- Text and numbers work best. An IMAGE or LATENT is turned into text, which is rarely useful in a prompt.