Nodes/ComfyUI-ZML-Image/ZML_导出任意数据 (子工作流)
ComfyUI Node

ZML_导出任意数据 (子工作流)

A marker node that hands your data out of a subflow

By zml-w·Created about a year ago·Updated 2 months ago· 218
ZML_导出任意数据 (子工作流)
  • 任意数据

    Some nodes do real work; some are markers that make a graph readable. ZML_SubflowExportAny is firmly in the second camp. It takes one input of any type, and its entire backend is return {} - it consumes the value, emits nothing, and exists to mark a value as "this is an output of this subflow." It's a signpost, not a processor, and that's exactly what it's for.

    It lives in the pack's 子工作流 (subflow) category, which the author created as a way to build reusable, parallel-friendly workflow pieces. If you've collapsed part of your graph into a ComfyUI subgraph/subflow and you want a data value - a string, an integer, a conditioning, anything - to be an output of that subflow, you put this node at the point where the value should exit. Any type goes in (the socket is wildcard-typed), and because it's marked as an output node it always runs, so the value is always "current" when the subflow executes.

    Inputs and outputs

    • 任意数据 (required, any type) - whatever value the subflow should export. No other inputs, no outputs. The node's whole contract is "this value leaves here."

    There's a companion ZML_SubflowExportImage for the specific IMAGE type, and ZML_SubflowLoadImage on the import side - the three of them are the I/O vocabulary of the pack's subflow pattern.

    How to use it, honestly

    The honest framing: this only makes sense inside a subflow or a workflow you're structuring for reuse. On a flat single graph, a node that eats a value and outputs nothing is pointless. Inside a subgraph, it's the way you declare "here's a handle on this data for the outside world." The author's stated motivation for the whole subflow category was working around ComfyUI's single-threaded execution by splitting simple logic or API work into parallel subflows - for that, you need explicit import/export markers, and these are the markers.

    It's also the thinnest node in the batch, so the failure mode is mostly conceptual: if you drop it on a flat graph expecting output, there is none by design. And since the pack is a solo project with a Chinese UI, expect the label to read ZML_导出任意数据 (子工作流) until you apply the English patch.

    Install

    Part of ComfyUI-ZML-Image: ComfyUI Manager → search "ComfyUI-ZML-Image", or cd ComfyUI/custom_nodes && git clone https://github.com/zml-w/ComfyUI-ZML-Image, restart. No models, no extra dependencies.

    Categoryimage/ZML_图像/子工作流

    Inputs (1)

    NameTypeDefaultDescription
    任意数据*

    Outputs (0)

    No outputs