Coordinate_pointCombine
Merging up to five coordinate lists into one
- coordinates
Once you've got points coming from more than one place - a few clicked manually, a couple pulled out of a mask, one typed in by hand - you need a way to fold them into a single list before anything downstream can use them together. That's the entire job of Coordinate_pointCombine.
What it is and why you'd reach for it
This is part of ComfyUI-Apt_Preset's ImgCoordinate family, where points and regions move through the graph as JSON strings instead of image tensors. It's genuinely useful once your point-gathering gets non-trivial: say you used Coordinate_fromImage to click two reference points by eye, Coordinate_fromMask to pull a third automatically off a detected region, and Coordinate_Generator to type in a fourth you already knew the exact value for. Without a combiner, those stay as three separate coordinate strings on three separate wires. This node merges them into one.
How it works
There's nothing required here - all five inputs are optional, each defaulting to an empty list ([]). Wire in as many coordinatesN slots as you actually have sources for; leave the rest disconnected. The node folds whatever's connected into a single combined coordinates list.
Inputs and outputs that matter
coordinates1throughcoordinates5(all optional, STRING, default[]) - up to five separate coordinate JSON strings to merge. You don't need to fill all five; wire in only what you have.
Output: a single coordinates STRING containing the merged point set, in the same format every other node in this family reads - ready to feed Coordinate_MarkRender to visually confirm the merge worked, or Coordinate_SplitIndex to pull one specific point back out of the combined set.
Installing it
Through ComfyUI Manager: search ComfyUI-Apt_Preset, install, restart. Manually:
cd ComfyUI/custom_nodes
git clone https://github.com/cardenluo/ComfyUI-Apt_Preset.git
Run install.bat on Windows for dependencies; on Linux/Mac install the requirements yourself, as no equivalent script is bundled for those platforms. No models needed - this is pure list merging, nothing to download.
Common issues
The thing most worth knowing about this node is what almost certainly happens to the index field on each incoming point when lists get merged - if two of your source lists both used index 1 (which they will, since most upstream nodes number their points starting from 1 independently), you either end up with duplicate indexes in the combined list or the node renumbers them, and the schema doesn't tell you which. If a downstream node that reads by index (Coordinate_SplitIndex, for instance) starts pulling the wrong point after a combine, check the actual merged JSON output rather than assuming the indexes carried over the way you expected.
Beyond that: malformed JSON in any of the five inputs - easy to introduce if you're hand-editing a points_data field upstream - will typically break the merge rather than silently skip that input, so validate before wiring in a hand-typed source.
As with the rest of ComfyUI-Apt_Preset: it's a large, actively-updated pack, and at least one user has reported an IMPORT FAILED error at ComfyUI startup after installing it. Check the console log if this node - or anything else from the pack - doesn't show up after install.
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| coordinates1opt | STRING | [] | — |
| coordinates2opt | STRING | [] | — |
| coordinates3opt | STRING | [] | — |
| coordinates4opt | STRING | [] | — |
| coordinates5opt | STRING | [] | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| coordinates | STRING | — |