Critical fixes: - Added WEB_DIRECTORY = './web' to __init__.py (REQUIRED for ComfyUI to load JS) - Simplified JavaScript implementation based on working custom nodes - Removed unnecessary imports (ComfyWidgets) - Cleaner button implementation that actually registers This should now properly load the JavaScript widget when ComfyUI starts.
11 lines
267 B
Python
11 lines
267 B
Python
"""
|
|
Random Image Picker Node for ComfyUI
|
|
Loads single images or random images from folders
|
|
"""
|
|
|
|
from .random_image_picker import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
|
|
|
|
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']
|
|
|
|
WEB_DIRECTORY = "./web"
|