OC Outfit Legwear Part
Socks, stockings, and the whole legwear slot
- oc_part
- prompt_preview
- debug_text
OCOutfit Legwear Part covers the socks-and-stockings slot: 57 options under the single 袜子 (hosiery) subcategory, feeding Character Outfit Block's legwear_part input. If you've spent any time prompting anime models, you know this is a weirdly important slice of the vocabulary - fishnets, black_thighhighs, black_pantyhose, bodystocking, bobby_socks, ankle_socks, back-seamed_legwear, asymmetrical_legwear, bare_legs. It's a niche that punches way above its weight in character design, and the catalog leans exactly where anime art leans: thigh-highs and fishnets first, everything else a distant third.
It's structurally the simplest kind of part node - one subcategory, no group gymnastics - so it's a good one to learn the pack's part-node rhythm on.
How it works
mode-unset(default, emits nothing),fixed, orrandomize. The pack's universal footgun: leave it onunsetand your character's legs stay bare, silently. This is genuinely a legwear-relevant bug - you will run once with the node wired and get pants-less legs before you notice.option- static dropdown over all 57, formatted袜子 | 黑丝裤袜 -> black_pantyhose.
group has just the two choices (__all_groups__ or 袜子), so the static-dropdown mismatch fallback doesn't bite here. randomize is deterministic - same seed, same legwear. color_role defaults to auto, and the legwear slot maps to neutral - the palette's quietest role, which is right for socks. Most legwear tags already encode their own color (black_thighhighs), so you'll often set color_role to none rather than have "neutral silver" prepended to a tag that already says black.
Outputs
The standard trio: oc_part (typed OC_PART_OUTFIT_LEGWEAR, wire into legwear_part), prompt_preview (the resolved tag), debug_text (mode, color role, pool index).
Installing it
cd ComfyUI/custom_nodes
git clone https://github.com/Zhuozhuo-219/ComfyUI-OC-Generator
Restart ComfyUI, or use ComfyUI Manager (search ComfyUI-OC-Generator). No extra dependencies, no model downloads - the tag catalog ships in-repo, so the dropdown is ready offline.
Honest caveat: 57 options is a curated cut. The catalog is strongest exactly where anime legwear culture is strongest (hosiery and thigh-highs), so the common cases are covered - but a specific pattern or rare style goes in OC Generator's prefix_prompt. And this being a young, quiet pack, debug_text is your documentation: when legs come out bare, check the mode before you check the sampler.
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| group | COMBO | __all_groups__ | Limit the part to one subgroup inside this slot. The option dropdown is still static in the UI. |
| mode | COMBO | unset | unset emits no prompt. fixed keeps the selected option. randomize samples within the current slot pool. |
| option | COMBO | 袜子 | 整理裤袜 -> adjusting_legwear | Static dropdown for all options in this part node. If the selected option is outside the current group, execution falls back to the first valid item in that group. |
| color_roleopt | COMBO | auto | How this part should consume the global palette. auto lets Character Outfit Block assign a role by slot. |
| seedopt | INT | 00–4294967295 | Seed used by randomize mode for reproducible part selection. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| oc_part | OC_PART_OUTFIT_LEGWEAR | Structured local part data for Character Outfit Block. |
| prompt_preview | STRING | The prompt fragment resolved by this part node. |
| debug_text | STRING | Execution details for slot filtering and random selection. |