ComfyUI Node

XController

Universal control node. Select control type via dropdown: Knob, Horizontal Fader, Vertical Fader, Toggle, Button, or XY Pad. Supports Range, Steps, and Percentage value modes for analog controls.

By Xz3r0-M·Created 7 months ago·Updated about 10 hours ago· 12
XController
    • FLOAT
    • INT
    • BOOLEAN
    • X
    • Y
    control_typeKnob
    value_modeRange
    min0.00
    max1.00
    step0.010
    default_value0.50
    steps[0.0, 0.25, 0.5, 0.75, 1.0]
    default_step_index2
    base_value100.00
    pct_min-50.0
    pct_max50.0
    default_pct0.0
    shapecircle
    toggle_styleswitch
    default_statetrue
    button_modeincrease
    button_stylerounded
    x_min0.00
    x_max1.00
    x_step0.010
    x_default0.50
    y_min0.00
    y_max1.00
    y_step0.010
    y_default0.50
    crosshair_visibletrue
    grid_visibletrue
    _normalized0.5000
    _statefalse
    _x_normalized0.5000
    _y_normalized0.5000
    Category♾️ Xz3r0/Workflow-Processing

    Inputs (31)

    NameTypeDefaultDescription
    control_typeCOMBOKnobSelect the visible controller: Knob, horizontal fader, vertical fader, Toggle, hold Button, or XY Pad.
    value_modeCOMBORangeControls how a 0-1 position becomes FLOAT output: Range, Steps, or Percentage.
    minFLOAT0.00Lowest FLOAT output in Range mode.
    maxFLOAT1.00Highest FLOAT output in Range mode.
    stepFLOAT0.010Range snap size and hold-button increment. Use 0 to disable snapping.
    default_valueFLOAT0.50Default Range value used as the intended reset/start value.
    stepsSTRING[0.0, 0.25, 0.5, 0.75, 1.0]JSON array of discrete FLOAT outputs, for example [0, 0.25, 0.5, 1].
    default_step_indexINT2Default step index, starting at 0. The button moves one index per repeat.
    base_valueFLOAT100.00Base value used before applying the percentage offset.
    pct_minFLOAT-50.0Minimum percentage offset. Negative values reduce the base value.
    pct_maxFLOAT50.0Maximum percentage offset. Positive values increase the base value.
    default_pctFLOAT0.0Default percentage offset used as the intended reset/start value.
    shapeCOMBOcircleVisual shape for knobs, or handle shape for horizontal/vertical faders.
    toggle_styleCOMBOswitchVisual style of the boolean toggle. It changes BOOLEAN and outputs 0 or 1 on FLOAT.
    default_stateBOOLEANtrueDefault boolean state for Toggle when no saved state exists.
    button_modeCOMBOincreaseIncrease: hold to raise value. Decrease: hold to lower value. Toggle: click between min and max
    button_styleCOMBOroundedVisual shape of the hold button. The button also reports pressed state on BOOLEAN.
    x_minFLOAT0.00Lowest X output value for the XY Pad.
    x_maxFLOAT1.00Highest X output value for the XY Pad.
    x_stepFLOAT0.010Snap size for X output. Use 0 to disable X snapping.
    x_defaultFLOAT0.50Default X value used as the intended reset/start value.
    y_minFLOAT0.00Lowest Y output value for the XY Pad.
    y_maxFLOAT1.00Highest Y output value for the XY Pad.
    y_stepFLOAT0.010Snap size for Y output. Use 0 to disable Y snapping.
    y_defaultFLOAT0.50Default Y value used as the intended reset/start value.
    crosshair_visibleBOOLEANtrueShow guide lines through the current XY point.
    grid_visibleBOOLEANtrueShow a subtle grid behind the XY Pad for easier positioning.
    _normalizedFLOAT0.50000–1Internal: current normalized value (analog controls)
    _stateBOOLEANfalseInternal: current state
    _x_normalizedFLOAT0.50000–1Internal: current normalized X
    _y_normalizedFLOAT0.50000–1Internal: current normalized Y

    Outputs (5)

    NameTypeDescription
    FLOATFLOATCurrent value (analog controls)
    INTINTFLOAT output truncated toward zero
    BOOLEANBOOLEANCurrent state (toggle / button)
    XFLOATCurrent X coordinate
    YFLOATCurrent Y coordinate