LoRA Stack (LoRA Control):
LoRAControlStack builds an ordered list of up to six selected LoRAs, each with its own strength. You can combine it with an existing stack to organize more than six LoRAs across multiple nodes. It prepares the stack for another node to use; the source shown here does not load LoRA files or apply them to a model itself.
LoRA Stack (LoRA Control) Input Parameters:
enabled
A required Boolean switch that controls whether this node adds its own LoRAs. The default is true; the available values are true and false. When false, the node passes any incoming stack through without adding entries, and its text summary is empty. It does not remove LoRAs already in the incoming stack.
on_1
A required Boolean switch for slot 1, defaulting to true. Set it to false to exclude this slot without changing its selected LoRA or strength. A slot also needs a selection other than the no-selection option and a nonzero strength to be included.
lora_1
A required selection for slot 1. Its options are the no-selection option, represented in the source by NONE, followed by filenames available in the configured LoRA folder. Choosing the no-selection option excludes this slot. The source does not specify a default selection, and the available filenames depend on your installation.
strength_1
A required numeric strength for slot 1, with a default of 1.0, a minimum of -10.0, a maximum of 10.0, and a step of 0.01. A value of 0 excludes the slot. For an included slot, this same value is stored twice in its stack entry; the node does not offer separate model and text-encoder strengths.
on_2
A required Boolean switch for slot 2, defaulting to true. Set it to false to exclude this slot while retaining its selection and strength. Even when it is on, the slot is excluded if no LoRA is selected or its strength is zero.
lora_2
A required selection for slot 2. Choose from the no-selection option, represented by NONE, or the filenames available in the configured LoRA folder. The no-selection option excludes this slot. No default selection is specified in the source.
strength_2
A required numeric strength for slot 2, with a default of 1.0, a minimum of -10.0, a maximum of 10.0, and a step of 0.01. Zero excludes the slot; any included value is stored twice in its stack entry. The effect of a particular strength depends on how a later node uses the stack.
on_3
A required Boolean switch for slot 3, defaulting to true. Turning it off excludes slot 3 without clearing its settings. Turning it on permits inclusion only when its selection is not the no-selection option and its strength is nonzero.
lora_3
A required selection for slot 3. Its options consist of the no-selection option, represented by NONE, and filenames available in the configured LoRA folder. Select the no-selection option to leave this slot out. The source specifies no default selection.
strength_3
A required numeric strength for slot 3, with a default of 1.0, a minimum of -10.0, a maximum of 10.0, and a step of 0.01. Zero leaves slot 3 out of the stack. When included, the value appears twice in the slot’s stack entry.
on_4
A required Boolean switch for slot 4, defaulting to true. Set it to false to omit slot 4 while keeping its other settings available. If it remains on, a selected LoRA and nonzero strength are still required for inclusion.
lora_4
A required selection for slot 4, offering the no-selection option represented by NONE plus filenames from the configured LoRA folder. The no-selection option leaves the slot out of the stack. No default selection is stated in the source.
strength_4
A required numeric strength for slot 4, with a default of 1.0, a minimum of -10.0, a maximum of 10.0, and a step of 0.01. Set it to zero to omit this slot. If included, its value is stored twice in the resulting stack entry.
on_5
A required Boolean switch for slot 5, defaulting to true. Turning it off omits this slot without changing its LoRA selection or strength. When on, the slot is included only if a LoRA is selected and its strength is not zero.
lora_5
A required selection for slot 5. The choices are the no-selection option represented by NONE and filenames available in the configured LoRA folder. Choosing no selection omits the slot. The source does not define a default selection.
strength_5
A required numeric strength for slot 5, with a default of 1.0, a minimum of -10.0, a maximum of 10.0, and a step of 0.01. Zero omits the slot; an included value is stored twice in its stack entry.
on_6
A required Boolean switch for slot 6, defaulting to true. Set it to false to exclude the sixth slot without clearing its settings. A slot that is on still needs a selection other than no selection and a nonzero strength.
lora_6
A required selection for slot 6. Choose the no-selection option represented by NONE, or a filename available in the configured LoRA folder. No selection excludes the slot. The source does not specify a default selection.
strength_6
A required numeric strength for slot 6, with a default of 1.0, a minimum of -10.0, a maximum of 10.0, and a step of 0.01. A value of zero excludes slot 6. An included value is stored twice in its stack entry.
lora_stack
An optional LORA_STACK connection for an existing stack. Its entries come first in the output, followed by this node’s included slots in slot order. Leaving it disconnected starts a stack with only this node’s included slots. Disabling this node passes the incoming stack through without adding to it.
LoRA Stack (LoRA Control) Output Parameters:
lora_stack
The resulting LORA_STACK contains the incoming entries, if any, followed by this node’s eligible selections in order from slot 1 through slot 6. Each new entry contains the selected LoRA filename and the slot’s strength stored twice. Slots that are off, have no selection, or have zero strength add nothing. When the node is disabled, this output contains only the incoming entries, or an empty stack if none was connected.
loras
A text summary of the LoRAs added by this node, formatted as display name and strength pairs separated by commas, such as PortraitStyle:0.8, DetailStyle:0.5. It does not summarize entries inherited through lora_stack. It is empty when this node is disabled or none of its slots qualifies for inclusion. The display names come from a helper whose implementation is not provided, so they need not match filenames exactly.
LoRA Stack (LoRA Control) Usage Tips:
- Start with one selected LoRA at the default strength of
1.0, then adjust its strength in0.01steps while comparing results in the downstream workflow. - Use
on_1throughon_6to compare combinations without losing your selections or strength settings. Useenabledto temporarily bypass all additions from this node. - Leave unused slots at the no-selection option or set their strengths to
0. Either choice keeps those slots out of the output stack. - Connect an earlier stack to
lora_stackwhen you need more than six selections. Its entries precede this node’s additions; thelorastext reports only additions made by this node. - Check
lorasto confirm which local slots were included, then uselora_stackwith a compatible downstream node. This node assembles entries but does not apply them to a model.
LoRA Stack (LoRA Control) Common Errors and Solutions:
No LoRAs appear in loras
- Explanation: This is an empty-result symptom, not an error message emitted by the shown code. It occurs when
enabledis off or every slot is off, has no selection, or has strength0. The text also omits LoRAs inherited fromlora_stack. - Solution: Turn
enabledon, enable a slot, select a LoRA, and give it a nonzero strength. Checklora_stackseparately for inherited entries.
A selected LoRA does not appear in the output stack
- Explanation: Selecting a filename alone is insufficient. The slot is included only when its
on_switch is true, the selection is notNONE, and its strength is nonzero. - Solution: Check those three settings for the affected slot, then check the
lorassummary for its local entry.
The LoRA you want is missing from the selection list
- Explanation: The choices are supplied by the configured LoRA filename list. The shown node code does not scan other locations or add missing files itself.
- Solution: Confirm that the file is in a LoRA folder recognized by your installation, then refresh the available choices using your installation’s normal procedure.
loras does not list LoRAs from the connected stack
- Explanation: This is expected behavior. The text is built from entries added by this node, while the
lora_stackoutput includes both incoming and newly added entries. - Solution: Inspect the
lora_stackoutput or the preceding node when checking inherited LoRAs.
Disabling the node does not remove earlier LoRAs
- Explanation: When
enabledis false, the node passes the incoming stack through. It disables only this node’s additions. - Solution: Disable or change the earlier stack node as well if you need to remove its entries.
A downstream node reports a LoRA loading or compatibility problem
- Explanation: The shown code only assembles filename-and-strength entries; it does not load the files or check their compatibility. The exact downstream error message depends on the node consuming the stack.
- Solution: Identify the reported filename, confirm that the file is available, and check its compatibility with the model and downstream node you are using.
