set it as clip type
Trust Me, It's a CLIP — the pass-through that re-labels an any-wire
- a
- clip
"Set it as clip type" does exactly one thing, and the name is not a lie: it takes whatever is on its input, does nothing to it, and presents it to the rest of the graph as a CLIP. It's the only node in this pack with any search impressions, which is funny, because it's also one of the most disposable - it only matters if you've already built the kind of workflow where it makes sense.
Here's the problem it solves. ComfyUI is strict about wire types: a socket typed * (any) connects to anything, but once a value has been dragged through an any-typed junction - a Use Everywhere node, a switch that routes several types, an API-fed graph - the editor loses track of what it actually is. Downstream, a node with a strictly-typed CLIP input may refuse the wire, or accept it and fail at execution time. This node is your "trust me" sticker: wire anything into a, and out pops the same object wearing a CLIP label, ready to plug into a CLIP Text Encode or whatever else is waiting.
The mechanism is embarrassingly simple - the source is def exec(self, a=None): return (a,). The whole trick lives in the declared RETURN_TYPES = ("CLIP",). There is zero computation, zero conversion, zero validation.
And that's the catch you need to internalize before you lean on it. The label is a promise, not a transformation. If what's actually flowing through that wire is a MODEL or a string, this node will not turn it into a CLIP - it will happily hand the wrong object to the next node and let that node crash on execution. So the rule of thumb: only use it when you know what's on the other end and just need the editor to agree.
When you'd reach for it
You're running a cg-use-everywhere style graph where one CLIP (or one of several) is routed to many text encoders without drawing a hundred wires. Or you're feeding a model's CLIP in from a value-switch node and the typed input keeps refusing the connection. That's this node's home turf - the pack README says outright it exists to "enhance use cg-use-everywhere."
If you're not doing any-wire routing, skip it. Plain linear workflows never need a CLIP re-labeler.
Install
ComfyUI Manager → Custom Nodes → search ymc-node-as-x-type, or:
cd ComfyUI/custom_nodes
git clone https://github.com/YMC-GitHub/ymc-node-as-x-type
Restart ComfyUI. No model files to download; the four yors_* pip packages in requirements.txt install automatically on startup. You'll find the node by double-clicking and typing set it as, or under the right-click menu YMC → LINK.
Gotchas
- It doesn't convert anything. Garbage in, garbage out with a CLIP sticker on it - the downstream node does the crashing.
- If it never appears after install, a
yors_*dependency failed to install (the whole pack won't register). - This is a one-commit, single-maintainer personal pack (v0.1.2, June 2025). Low maintenance means low expectations - don't count on rapid updates.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| aopt | * | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| clip | CLIP | — |