ComfyUI Node

HT Flexible

The any-type passthrough that keeps your graph from breaking

By ArtHommage·Created 2 years ago·Updated about a year ago· 4
HT Flexible
  • input
  • output
fallback_typeSTRING

ComfyUI is strict about types, and that strictness is most of its power. But sometimes it's exactly what you're fighting. You want to prototype a workflow before you've decided whether that wire carries an image or a latent, or you want to leave a placeholder input so you can hot-swap what feeds it without rewiring everything. HT Flexible is the pack's answer: a node with a wildcard (*) input and a wildcard output that just passes whatever you give it through.

What it does

There's no magic here - the mechanism is almost embarrassingly simple. If something is connected to input, it returns it unchanged with the type it arrived as. If nothing is connected, it returns an empty value of the type you name in fallback_type: "" for STRING, 0 for INT, 0.0 for FLOAT, and so on. That's the whole node, and that's its virtue.

The genuinely useful part is the fallback. In a real workflow you'll use it as a conditional value selector: wire a switch or an extractor into input for the "real" value, and set fallback_type so that when the wire is empty (or deliberately unmuted-then-disconnected), the downstream node still gets something typed correctly instead of a hard crash. ComfyUI lets the wildcard connect to almost anything, which is what makes this work as a universal adapter when you're mid-experiment.

When you'd reach for it

  • Prototyping: you don't know yet whether a stage wants an image or a latent, so you route through Flexible and decide later.
  • Workflow organization: a clean choke point that shows "a value flows here" without forcing a specific type on you.
  • Debugging a graph: temporarily disconnect the source, let the fallback carry the type, and confirm the downstream node is the problem rather than the data.

It's one input (input, wildcard), one output (output, wildcard), and one field you actually set (fallback_type). That's the entire surface area.

Installing

Same as the rest of HommageTools:

cd ComfyUI/custom_nodes
git clone https://github.com/ArtHommage/HommageTools.git
cd HommageTools && pip install -r requirements.txt

then restart ComfyUI. Or use Manager and search "HommageTools for ComfyUI". No extra models, no API key, no heavy dependencies - this is a pure utility node.

The honest take

HT Flexible is not going to change your life, and the pack's own README positions it as a flexibility/experimentation convenience rather than a production workhorse. If you're already deep into rgthree's reroutes and Fast Groups Muter, you may find you rarely need it - those solve the "keep the graph tidy" problem differently. Where it earns its place is exactly the throwaway prototype: the workflow you're going to throw away but don't want to fight while you're building it. Remember the pack is "perpetually in alpha," so treat the wildcard behavior as a convenience, not an API contract - if a future ComfyUI version tightens wildcard handling, this is the node that'll feel it first.

CategoryHommageTools

Inputs (2)

NameTypeDefaultDescription
inputopt*
fallback_typeoptSTRINGSTRING

Outputs (1)

NameTypeDescription
output*