ComfyUI Node

EZ Switch

Switch between any number of inputs automatically, based on index or randomly.

By ez-af·Created 2 years ago·Updated 3 months ago· 28
EZ Switch
    • *
    number_of_inputs2
    selected_index1
    selection_modeby index
    opt_seed0
    CategoryEZ NODES

    Inputs (4)

    NameTypeDefaultDescription
    number_of_inputsINT22–50Dynamically select number of inputs. Only the last of current inputs may be affected when this value is changed
    selected_indexINT11–50Index of input to be passed to output (if in 'by index' mode)
    selection_modeCOMBOby indexmodes: - by index: Select input by specifying index - by random: Choose a random input each time - automatic: Output the first input that is not None
    opt_seedoptINT00–18446744073709550000Control SEED, used only in 'by random' selection mode. If not connected, always re-executes node on prompt

    Outputs (1)

    NameTypeDescription
    **Unprocessed value of any type.