Any String
The String That Connects to Anything
- *
Say you're running the same LoRA on three different loaders. You've got to type the filename into every one, and the next time you swap to another model you get to do it all over again. Any String is the fix: one STRING input whose output is typed as a wildcard, so ComfyUI will let you wire it into any input - including the widget-style string ports most loaders have.
The default value is a dead giveaway for the intended use: photon_v1.safetensors. This is a "feed one name everywhere" node, not a general-purpose text utility. You type the filename once, fan the output out to every loader, and change it in one place forever after.
How it works
The mechanism is one line of the pack's source: a wildcard output type. ComfyUI's typing system lets a node declare its output as * (this pack's AnyType), and * is considered compatible with every input port. So the string flows anywhere. It's the same trick most "any type" nodes use, except this one always carries a string underneath.
The inputs and outputs
- value (STRING) - the text you want to hand around. Default
photon_v1.safetensors, and it's a plain editable field.
The output is * - the same string, wearing a wildcard hat. That's the entire API. Wire it into LoRA loader names, checkpoint names, folder paths, prompt-ish fields, whatever accepts strings.
The honest caveats
- It's a type escape hatch, not a type converter. A wildcard output connects to an integer port too, but the receiving node still has to parse what arrives. Feed it "3.14" into a number input and the node may throw or silently coerce - don't expect Any String to magically cast types.
- It's marked as an output node. That's harmless in the middle of a graph, but it means ComfyUI treats it as a valid terminal node, so it's easy to leave one dangling on a finished workflow.
- It's the debug family's poster child. The "wire anything into anything" trick solves real problems, but it also hides type mistakes. If a connection downstream starts failing weirdly, remember the string you're pushing around isn't actually a tensor.
Install
Install the pack with ComfyUI Manager (search ComfyUI-Vivax-Nodes) or clone it:
cd ComfyUI/custom_nodes
git clone https://github.com/vivax3794/ComfyUI-Vivax-Nodes
then restart ComfyUI. The pack's only dependency is rich (for the colored console output); Manager installs it automatically, or run pip install rich if you cloned by hand and get an import error. No models, no API keys.
As with any custom node pack - and ComfyUI's whole ecosystem runs on trust - installing one runs its code with your user account. This is a small single-author pack, so it's worth a quick look at the repo before you add it to your setup.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| value | STRING | photon_v1.safetensors | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| * | * | — |