SVG Passthrough (Text vers String)
The adapter that turns SVG_TEXT into a plain string
- svg_text
- string
SVG Passthrough is the most honest node in ComfyUI_DAO_master: it takes SVG_TEXT in and returns the exact same bytes as a plain STRING. No transformation, no validation, no cleverness. It exists for one reason - type compatibility - and it does that job perfectly.
Why this node needs to exist
This pack uses a custom SVG_TEXT type for everything in its SVG lane: SVG Load produces it, SVG Style, SVG Boolean and DXF to SVG consume and produce it. That's clean inside the pack, but it's a wall the moment you leave it. ComfyUI's normal STRING nodes - Show Text, any text-processing node, string concatenators, node packs that expect standard strings - won't accept SVG_TEXT because the type doesn't match. SVG Passthrough is the bridge: it converts the custom type to a standard STRING with zero cost.
The reverse direction is the gap, by the way. This node only goes SVG_TEXT → STRING. If you have a plain string and need to feed it into a node that wants SVG_TEXT... you're on your own; the pack doesn't ship the reverse adapter.
Inputs and outputs
One input: svg_text. One output: string (type STRING). Wire the output into any standard text node, a Save node that wants a path-agnostic string, or a Show Text to inspect the raw SVG markup. Since SVG is just XML, you can also do string surgery downstream - regex, find-and-replace, building new SVG by hand - which is genuinely useful for quick fixes you don't want a whole XML parser for.
How to install
Part of the orion4d/ComfyUI_DAO_master pack:
cd ComfyUI/custom_nodes
git clone https://github.com/orion4d/ComfyUI_DAO_master.git
No extra dependencies for this one - it's pure passthrough. Restart ComfyUI after installing the pack.
Common issues
The main "issue" is a misunderstanding: people expect it to do something. It doesn't, and that's the point. If a node downstream of your SVG work refuses the connection, check you're feeding it STRING (via this node) rather than SVG_TEXT. And if you want the reverse conversion - a plain string into an SVG_TEXT input - you'll need to look at a different pack or handle it manually, because this node won't help you there.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| svg_text | SVG_TEXT | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| string | STRING | — |