Dual-API ComfyUI custom node (V1 NODE_CLASS_MAPPINGS + V3 comfy_api schema) that generates randomised, structured human descriptions for image-generation prompts. - 16 trait categories: nationality, complexion, skin texture, eyes, face shape/nose/mouth, distinctive feature, hair colour/style/length, facial hair, body type, expression, accessories, makeup, plus age. - Per-category random / allow_list / fixed / off modes, sex-aware dropdown filtering via WEB_DIRECTORY js extension. - Shared core wrapped by thin V1 and V3 adapters; node_id "RandomPersonNode" fixed across both. - Trait data in editable data/ JSON; full output string plus per-pin outputs. - Unit tests (test_random_person.py) and Comfy registry publish workflow.
19 lines
601 B
Python
19 lines
601 B
Python
"""ComfyUI_RandomPerson: randomised structured person descriptions.
|
|
|
|
Exports V1 NODE_CLASS_MAPPINGS (authoritative on the 0.25.0 if/elif loader) and
|
|
comfy_entrypoint for builds whose loader prefers the V3 schema API. WEB_DIRECTORY
|
|
ships the sex-aware widget extension.
|
|
"""
|
|
|
|
from .random_person_node import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
|
|
|
|
WEB_DIRECTORY = "./js"
|
|
|
|
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]
|
|
|
|
try:
|
|
from .random_person_node import comfy_entrypoint # noqa: F401
|
|
__all__.append("comfy_entrypoint")
|
|
except ImportError:
|
|
pass
|