OC Character Hair Block
The one-subcategory block
- oc_block
- prompt_preview
- debug_text
OC Character Hair Block is the simplest block node in the pack: a single subcategory, 发型 (hairstyle), and 58 options. That's it. No multiple groups to juggle, no overlapping categories. If you want a block that just works while you learn the pack's rhythm, this is it.
What the 58 options lack in breadth they make up for in being exactly the tags you'd type anyway. ahoge (呆毛, the antenna cowlick), air bangs, antenna hair, asymmetric and blunt bangs, bob cut, braids, and the hair-color entries (black hair, blonde hair, blue hair). For the SDXL-lineage anime models this pack targets, those are precise, well-understood tokens - the model recognizes them the way it was trained on them.
How it works
The standard block-node controls, and with one subcategory they behave sensibly:
group- two choices:__all_groups__or发型. Picking the latter is the same as picking the former, just with extra ceremony.mode-fixed/randomize/increment/decrement. With a 58-item single pool,randomizeis a nice way to flip through hairstyles across seeds.option- the static dropdown, formatted发型 | 呆毛 -> ahoge. Because there's only one group, the group/option mismatch problem that plagues the bigger blocks basically can't happen here - your option is always in the pool.
The option dropdown is static (the whole catalog, all the time), but with one subcategory that limitation costs you nothing. The seeded randomize is deterministic: same seed, same hairstyle, which is what you want when you're generating a character sheet and need hair to stay consistent while faces change.
Outputs
The standard trio: oc_block (into OC Generator), prompt_preview (the resolved tag like ahoge), and debug_text (group and pool-index detail). enabled silences the block without deleting it; seed and step drive the non-fixed modes.
Installing it
Same single-repo install as everything else in this pack:
cd ComfyUI/custom_nodes
git clone https://github.com/Zhuozhuo-219/ComfyUI-OC-Generator
Restart ComfyUI, or install via ComfyUI Manager (search ComfyUI-OC-Generator). No extra dependencies, no model files - the pack's tag data ships inside the repo, so there's nothing to download before the dropdowns populate.
The honest take
This is the easiest node in the pack to reach for, and also the easiest to outgrow. 58 hairstyle options is fine for most characters, but color is where it gets limiting - black hair, blonde hair, blue hair are there, yet a specific shade like "pastel lavender with gradient tips" is not. When the catalog runs out, type the rest into OC Generator's prefix_prompt and let the hair block keep doing the common stuff. That hybrid - block for the standard tags, prefix for the bespoke ones - is how most people end up using this pack anyway.
The pack is young and quiet, so don't expect a big trail of community workflows to copy. But for a block this simple, you don't need one.
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| group | COMBO | __all_groups__ | Limit selection to one subgroup. The option dropdown itself is static and will not visually shrink when group changes. |
| mode | COMBO | fixed | fixed keeps the chosen option when valid for the current group. randomize / increment / decrement operate only within the selected group pool. |
| option | COMBO | 发型 | 呆毛 -> ahoge | Static dropdown for the whole catalog. If the chosen option does not belong to the current group, execution falls back to the first valid item in that group. |
| enabledopt | BOOLEAN | true | Disable this block without deleting it from the workflow. |
| seedopt | INT | 00–4294967295 | Seed used by randomize mode to get reproducible results inside the current group pool. |
| stepopt | INT | 11–1024 | Step size for increment / decrement mode inside the current group pool. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| oc_block | OC_BLOCK | Structured OC block data for downstream aggregation in OC Generator. |
| prompt_preview | STRING | The prompt fragment resolved by this dimension node. |
| debug_text | STRING | Execution details, including group filtering and selection behavior. |