set it as any type
A named junction when you don't want to commit
- a
- a
"Set it as any type" is the odd one out in this pack, and also the one that tells you what the whole pack is actually for. Every other node in ymc-node-as-x-type takes an any-typed value and stamps it with a concrete type - CLIP, IMAGE, MODEL. This one takes an any-typed value and outputs it as any. It re-labels nothing.
So what does it do? Honestly? It's a junction box. Its input a accepts anything, and its output a is typed *, which means it connects to anything. In a graph that's gone deep on any-wire routing - cg-use-everywhere style, where you'd rather not draw a hundred explicit links - you sometimes want a single, findable spot where a value passes through, a named landing pad you can grab from. That's this node. The pack README frames the whole project as an enhancer for cg-use-everywhere, and this is the purest expression of that: a wire in, a wire out, and a node you can read in the graph.
Mechanically there is nothing to explain, because there's no machinery. The source is exec(self, a=None): return (a,). The input and output are both *. It can't break your workflow because it can't do anything to your data - the only failure mode is wiring it up and forgetting it exists.
When you'd reach for it
You probably won't, often. A plain Reroute node (rgthree's, or the built-in one) already gives you a named pass-through for keeping graphs readable, and it does more - it doesn't pretend to be anything either. The "as any" node earns its keep if you're building a routing section where you want a semantically labeled buffer ("here's the thing we're switching on") sitting in the middle of an any-wire network.
If you're starting out: don't install this pack for this node. You don't need an any-junction until you have an any-problem, and by then you'll know which type you actually want to stamp - in which case one of its siblings (as clip, as image, as model…) is the real tool.
Install
cd ComfyUI/custom_nodes
git clone https://github.com/YMC-GitHub/ymc-node-as-x-type
or via ComfyUI Manager, searching ymc-node-as-x-type. Restart. No models, no heavy deps - the four yors_* pip packages in requirements.txt install automatically on first startup. Find it by double-clicking and typing set it as, or right-click → YMC → LINK.
Gotchas
- There's no conversion and no validation, so there's also nothing to debug - which is the whole point.
- It's from a one-commit personal pack (v0.1.2, 2025). Fine as a utility; don't expect it to be maintained forever.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| aopt | * | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| a | * | — |