set it as conditioning type
Stamping 'conditioning' on an any-wire is the riskiest sticker in this pack
- a
- Conditioning
Of all the "set it as" nodes in this pack, the conditioning one is the one to treat with the most respect, because a CONDITIONING is the most fragile thing that routinely rides an any-wire. It's not a tensor or a single object - it's a list of dicts: [{"pooled_output": tensor, "cross_attn_kwargs": ...}] - a little bundle of structure that a sampler unpacks and does real math on. Stamp the wrong thing with a CONDITIONING label and the KSampler won't complain at the wire; it'll complain in the middle of the sampling loop.
Which is exactly why this node exists. The pack's job - per the README, "to enhance use cg-use-everywhere" - is to take a value that's lost its type by passing through an any-typed junction (Use Everywhere node, a switch, an API input) and re-declare it. "Set it as conditioning type" takes whatever is on a, returns it untouched, and labels the output CONDITIONING, so it plugs into the positive/negative sockets of a KSampler or the conditioning input of a ConditioningCombine.
The mechanism is the same transparent pass-through as its siblings - exec(self, a=None): return (a,), RETURN_TYPES = ("CONDITIONING",). Zero conversion, zero validation. The label is a promise.
When you'd reach for it
- You're sharing one positive/negative conditioning across several samplers via an any-wire and the typed socket is refusing the connection. This is the textbook use - the exact scenario the README's cg-use-everywhere link-up is aimed at.
- Conditioning is being assembled by a switch or value-router and arrives as
*.
And the honest counterweight: if you're not doing any-wire routing, you don't need this. And if you are, the safest habit is to keep conditioning on real CONDITIONING wires wherever you can - this node is the emergency hatch, not the main road. Mislabeling here is the most likely way this pack bites you, because the failure is delayed and looks like a sampler bug.
Install
cd ComfyUI/custom_nodes
git clone https://github.com/YMC-GitHub/ymc-node-as-x-type
or via ComfyUI Manager (search ymc-node-as-x-type), restart. No models to download; the four yors_* pip deps auto-install on startup. Find it by double-clicking and typing set it as, or right-click → YMC → LINK.
Gotchas
- The most dangerous label in the pack: verify the wire really holds conditioning before you stamp it.
- One-commit, single-maintainer pack (v0.1.2, 2025). It works; it's just not going to be rewritten for you.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| aopt | * | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| Conditioning | CONDITIONING | — |