Nodes/ComfyUI-Pixaroma/Switch Source Pixaroma
ComfyUI Node

Switch Source Pixaroma

Switch Source Pixaroma - flip a whole set of wires between two sources (A and B) with one toggle. Each row has an A input and a B input and sends ONE of them to that row's output; the A/B toggle picks the side for every row at once. Wire your 'local' nodes into the A inputs and your 'api' nodes into the B inputs (or any two setups), then flip between them in a single click instead of toggling several separate switches. Set how many rows you need with the Rows field. Works for any wire type (MODEL, CLIP, VAE, IMAGE, LATENT, STRING, ...). The active side is the only one that runs - the other side's upstream nodes are skipped. The toggle below the A/B switch decides what happens when the active side has no wire on a row: 'Allow empty' silently leaves that output empty (handy when banks have asymmetric wiring, e.g. 3 wired on B and only 1 on A); 'Show error' raises a clear error when the OTHER side was wired (catches the case where you dropped a wire on the wrong bank by mistake).

By pixaroma·Created 5 months ago·Updated 23 days ago· 271
Switch Source Pixaroma
  • a_1
  • a_2
  • a_3
  • a_4
  • a_5
  • a_6
  • a_7
  • a_8
  • a_9
  • a_10
  • a_11
  • a_12
  • a_13
  • a_14
  • a_15
  • a_16
  • b_1
  • b_2
  • b_3
  • b_4
  • b_5
  • b_6
  • b_7
  • b_8
  • b_9
  • b_10
  • b_11
  • b_12
  • b_13
  • b_14
  • b_15
  • b_16
  • 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
Category👑 Pixaroma/🔀 Logic & Flow

Inputs (32)

NameTypeDefaultDescription
a_1opt*Source A for row 1. Flows to output_1 when the toggle is on A.
a_2opt*Source A for row 2. Flows to output_2 when the toggle is on A.
a_3opt*Source A for row 3. Flows to output_3 when the toggle is on A.
a_4opt*Source A for row 4. Flows to output_4 when the toggle is on A.
a_5opt*Source A for row 5. Flows to output_5 when the toggle is on A.
a_6opt*Source A for row 6. Flows to output_6 when the toggle is on A.
a_7opt*Source A for row 7. Flows to output_7 when the toggle is on A.
a_8opt*Source A for row 8. Flows to output_8 when the toggle is on A.
a_9opt*Source A for row 9. Flows to output_9 when the toggle is on A.
a_10opt*Source A for row 10. Flows to output_10 when the toggle is on A.
a_11opt*Source A for row 11. Flows to output_11 when the toggle is on A.
a_12opt*Source A for row 12. Flows to output_12 when the toggle is on A.
a_13opt*Source A for row 13. Flows to output_13 when the toggle is on A.
a_14opt*Source A for row 14. Flows to output_14 when the toggle is on A.
a_15opt*Source A for row 15. Flows to output_15 when the toggle is on A.
a_16opt*Source A for row 16. Flows to output_16 when the toggle is on A.
b_1opt*Source B for row 1. Flows to output_1 when the toggle is on B.
b_2opt*Source B for row 2. Flows to output_2 when the toggle is on B.
b_3opt*Source B for row 3. Flows to output_3 when the toggle is on B.
b_4opt*Source B for row 4. Flows to output_4 when the toggle is on B.
b_5opt*Source B for row 5. Flows to output_5 when the toggle is on B.
b_6opt*Source B for row 6. Flows to output_6 when the toggle is on B.
b_7opt*Source B for row 7. Flows to output_7 when the toggle is on B.
b_8opt*Source B for row 8. Flows to output_8 when the toggle is on B.
b_9opt*Source B for row 9. Flows to output_9 when the toggle is on B.
b_10opt*Source B for row 10. Flows to output_10 when the toggle is on B.
b_11opt*Source B for row 11. Flows to output_11 when the toggle is on B.
b_12opt*Source B for row 12. Flows to output_12 when the toggle is on B.
b_13opt*Source B for row 13. Flows to output_13 when the toggle is on B.
b_14opt*Source B for row 14. Flows to output_14 when the toggle is on B.
b_15opt*Source B for row 15. Flows to output_15 when the toggle is on B.
b_16opt*Source B for row 16. Flows to output_16 when the toggle is on B.

Outputs (16)

NameTypeDescription
output_1*Row 1: carries the A or B input for this row, depending on the toggle.
output_2*Row 2: carries the A or B input for this row, depending on the toggle.
output_3*Row 3: carries the A or B input for this row, depending on the toggle.
output_4*Row 4: carries the A or B input for this row, depending on the toggle.
output_5*Row 5: carries the A or B input for this row, depending on the toggle.
output_6*Row 6: carries the A or B input for this row, depending on the toggle.
output_7*Row 7: carries the A or B input for this row, depending on the toggle.
output_8*Row 8: carries the A or B input for this row, depending on the toggle.
output_9*Row 9: carries the A or B input for this row, depending on the toggle.
output_10*Row 10: carries the A or B input for this row, depending on the toggle.
output_11*Row 11: carries the A or B input for this row, depending on the toggle.
output_12*Row 12: carries the A or B input for this row, depending on the toggle.
output_13*Row 13: carries the A or B input for this row, depending on the toggle.
output_14*Row 14: carries the A or B input for this row, depending on the toggle.
output_15*Row 15: carries the A or B input for this row, depending on the toggle.
output_16*Row 16: carries the A or B input for this row, depending on the toggle.