DELETED FILES: - MultiAreaConditioning.py (5 classes: MultiAreaConditioning, MultiAreaConditioningMask, ConditioningUpscale, ConditioningStretch, ConditioningDebug) - MultiLatentComposite.py - js/MultiAreaConditioning.js - js/MultiAreaConditioningMask.js - js/MultiLatentComposite.js KEPT: - RegionalPrompting.py (RegionalPrompterSimple, RegionalPrompterFlux) - js/RegionalPrompting.js - js/utils.js UPDATED: - __init__.py: Now only exports the 2 enhanced nodes - Removed all old node registrations from NODE_CLASS_MAPPINGS - Simplified to just Area-Based and Mask-Based prompters REASONING: - Old nodes required external CLIP Text Encode (extra complexity) - New enhanced nodes have inline prompts (much simpler UX) - User not using old nodes, only the new enhanced ones - Cleaner codebase, easier to maintain RESULT: - Nodes now nested under 'RegionalPrompter' category only - No more 'Davemane42' category - Only 2 nodes to choose from (Area or Mask based on model type)
26 lines
757 B
Python
26 lines
757 B
Python
# ComfyUI Regional Conditioning
|
|
# Enhanced nodes with inline prompts for easy regional control
|
|
|
|
from .RegionalPrompting import (
|
|
RegionalPrompterSimple,
|
|
RegionalPrompterFlux
|
|
)
|
|
|
|
NODE_CLASS_MAPPINGS = {
|
|
"RegionalPrompterSimple": RegionalPrompterSimple,
|
|
"RegionalPrompterFlux": RegionalPrompterFlux,
|
|
}
|
|
|
|
NODE_DISPLAY_NAME_MAPPINGS = {
|
|
"RegionalPrompterSimple": "Regional Prompter (Area-Based)",
|
|
"RegionalPrompterFlux": "Regional Prompter (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_RegionalConditioning: \033[92mLoaded successfully\033[0m')
|