Files
Claude df3e1e7e5b Make nodes model-agnostic: Rename EasyRegionFlux to EasyRegionMask
This commit removes all Flux-specific references from the codebase to make
it more universal and future-proof:

Changes:
- Renamed EasyRegionFlux → EasyRegionMask (class, function, JS references)
- Updated all tooltips to be model-agnostic (removed "for Flux" phrases)
- Moved Flux-specific tips from code to README "Model-Specific Tips" section
- Updated prompting guidance to emphasize spatial location in prompts
  ("left side", "right third") rather than just box positioning
- Changed node display name from "EasyRegion (Flux)" to "EasyRegion (Mask-Based)"

Rationale:
- Flux is over a year old and not the primary use case anymore
- Mask-based vs area-based distinction is clearer and more descriptive
- Model-specific tips belong in documentation, not code tooltips
- Makes codebase maintainable for future models (SD3, Chroma, etc.)
2025-11-22 17:33:41 +00:00

26 lines
674 B
Python

# ComfyUI EasyRegion
# Enhanced nodes with inline prompts for easy regional control
from .RegionalPrompting import (
EasyRegionSimple,
EasyRegionMask
)
NODE_CLASS_MAPPINGS = {
"EasyRegionSimple": EasyRegionSimple,
"EasyRegionMask": EasyRegionMask,
}
NODE_DISPLAY_NAME_MAPPINGS = {
"EasyRegionSimple": "EasyRegion (Area-Based)",
"EasyRegionMask": "EasyRegion (Mask-Based)",
}
# Export web directory for JavaScript files
import os
WEB_DIRECTORY = os.path.join(os.path.dirname(__file__), "js")
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS', 'WEB_DIRECTORY']
print('\033[34mComfyUI_EasyRegion: \033[92mLoaded successfully\033[0m')