Nodes/comfyui_tag_filter/TagColorChanger
ComfyUI Node

TagColorChanger

Random color variations for characters, one seed at a time

By sugarkwork·Created 2 years ago·Updated 6 months ago· 89
TagColorChanger
    • output
    tags
    skin
    hair
    eyes
    clothing
    accessories
    background
    other
    seed0

    TagColorChanger is the pack's toy - and it owns that label. It takes a tag string and randomly recolors it: each category of color tag gets replaced with a random color from a palette you choose. Want a hair color roulette? Set hair to all and every run rolls a new one. The author's own README says it's experimental, unexpected transformations can happen, and to treat it as fun - which is exactly the right framing, because it's genuinely fun for character variant generation.

    The palettes are the secret. The node ships hardcoded lists of warm colors (red, orange, gold, peach...), cool colors (blue, green, purple, teal...), and neutral colors (white, black, gray, silver), each with dark_ and light_ variants. For each of the seven categories - skin, hair, eyes, clothing, accessories, background, other - you pick one of skip (leave alone), warm, cool, neutral, or all (any color). A seed input (default 0) drives the randomness, so a fixed seed is a reproducible outfit while randomizing the seed spins up endless color variations of the same character. Emphasis weights on the tags are preserved through the recolor, per the README.

    How the recolor actually works

    Each input tag is looked up in the category file. If a tag carries skin_color, hair_color, or eye_color in its category list, it's replaced with something like red_skin, red_hair, or red_eyes drawn from your chosen palette. Tags that don't hit those categories fall through to other, which does a simpler trick: if the tag's first word is a known color (like red_shirt), it swaps just that color word for a random palette color, keeping the rest.

    Here's the honest gotcha, and it's a good one: the shipped category file has zero tags classified as clothing_color, accessories_color, or background_color (at least in the v3 data this pack reads by default). So the skin/hair/eyes menus do real work, but the clothing, accessories, and background settings mostly never match - those tags end up handled by the other branch's prefix-color swap instead. Set other to something sensible and you'll get most of what you want; leave it at skip and clothing recoloring quietly stops happening. That's the "experimental" in action.

    Install

    Same pack, same steps: ComfyUI Manager search "comfyui_tag_filter", or

    cd ComfyUI/custom_nodes
    git clone https://github.com/sugarkwork/comfyui_tag_fillter
    

    Restart. No dependencies, no models. Use it for character palette exploration or "same character, 20 colorways" batches - and don't put it anywhere a production workflow's correctness depends on it, because that's not what it's for.

    Categorystring

    Inputs (9)

    NameTypeDefaultDescription
    tagsSTRING
    skinCOMBO5 options: skip, warm, cool, neutral, all
    hairCOMBO5 options: skip, warm, cool, neutral, all
    eyesCOMBO5 options: skip, warm, cool, neutral, all
    clothingCOMBO5 options: skip, warm, cool, neutral, all
    accessoriesCOMBO5 options: skip, warm, cool, neutral, all
    backgroundCOMBO5 options: skip, warm, cool, neutral, all
    otherCOMBO5 options: skip, warm, cool, neutral, all
    seedINT00–9223372036854776000

    Outputs (1)

    NameTypeDescription
    outputSTRING