Nodes/ComfyUI-OC-Generator/OC Outfit Legwear Part
ComfyUI Node

OC Outfit Legwear Part

Socks, stockings, and the whole legwear slot

By Zhuozhuo-219·Created 3 months ago·Updated 2 months ago· 0
OC Outfit Legwear Part
    • oc_part
    • prompt_preview
    • debug_text
    group__all_groups__
    modeunset
    option袜子 | 整理裤袜 -> adjusting_legwear
    color_roleauto
    seed0

    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, or randomize. The pack's universal footgun: leave it on unset and 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.

    CategoryOC Generator/Parts

    Inputs (5)

    NameTypeDefaultDescription
    groupCOMBO__all_groups__Limit the part to one subgroup inside this slot. The option dropdown is still static in the UI.
    modeCOMBOunsetunset emits no prompt. fixed keeps the selected option. randomize samples within the current slot pool.
    optionCOMBO袜子 | 整理裤袜 -> adjusting_legwearStatic 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_roleoptCOMBOautoHow this part should consume the global palette. auto lets Character Outfit Block assign a role by slot.
    seedoptINT00–4294967295Seed used by randomize mode for reproducible part selection.

    Outputs (3)

    NameTypeDescription
    oc_partOC_PART_OUTFIT_LEGWEARStructured local part data for Character Outfit Block.
    prompt_previewSTRINGThe prompt fragment resolved by this part node.
    debug_textSTRINGExecution details for slot filtering and random selection.