color_select
A reusable color swatch for the rest of this pack's hex-code inputs
- color_code
This is the smallest node in the pack's color toolset, and not an image-processing node at all - it's a utility for picking one color once and feeding it to whatever else needs it. color_select wires into any of this pack's other hex-string color inputs: color_OneColor_keep's color, color_OneColor_replace's target_color/replace_color, the gradient nodes' overlay_color, color_balance_adv's lock_color_hex, and so on - instead of retyping the same hex code in five different places across a big grading graph.
It's small and unglamorous, and it's exactly the kind of node that saves real time the moment you're reusing one brand color or accent hex across several other nodes: set it once here, change it once here.
How it works
You either type a hex code directly into color_code, or pick one of the built-in named swatches from preset_color, which presumably overrides color_code with that swatch's value. The output type is ComfyUI's wildcard *, meaning it connects to whatever kind of input is expecting it downstream rather than being locked to one specific consumer node.
The inputs and outputs that matter
color_code(string, default#FFFFFF, freeform) - type any hex value directly.preset_color(dropdown, defaultNone) - 9 choices in total:Noneplus 8 named swatches straight from the pack's Chinese-authored source: red, orange, yellow, green, blue, black, white, and middle gray (a neutral 18%-style gray reference).- Output:
color_code(type*) - wire it into any other node in this pack expecting a hex-string color.
How to install 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
then run install.bat (Windows) or install requirements manually on Linux/Mac, and restart. No model downloads, no dependencies beyond the base pack.
Common issues & troubleshooting
Picking a preset doesn't seem to change anything. Check preset_color isn't still on None - that's the default, and it means color_code is what's actually used until you pick a named swatch.
A downstream node won't accept the output. The wildcard * output type means ComfyUI won't stop you at wire-connect time from plugging this into something that doesn't actually expect a color string - a bad match will fail at run time instead, so check the actual error message rather than assuming the connection itself is invalid.
Not sure which preset swatch is which. They're the pack's original Chinese labels (红色/橙色/黄色/绿色/蓝色/黑色/白色/中灰色) - red, orange, yellow, green, blue, black, white, middle gray, in that order in the dropdown.
IMPORT FAILED on the pack. ComfyUI-Apt_Preset is large and updates often; users have reported import failures after some updates. Reinstall via Manager before assuming it's this node.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| color_code | STRING | #FFFFFF | — |
| preset_color | COMBO | None | 9 options: None, 红色, 橙色, 黄色, 绿色, 蓝色, +3 |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| color_code | * | — |