Initial commit: ComfyUI Set/Get virtual nodes

Made-with: Cursor
This commit is contained in:
SpaceWarpStudio
2026-03-31 01:06:41 +02:00
commit 3dba770fcc
5 changed files with 2146 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
# __init__.py inside ComfyUI/custom_nodes/MyStandaloneSetGetNodes/
# Optional: Import folder_paths if you need it for Python nodes later,
# but it's not strictly required just for loading JS.
# import folder_paths
# Since these are pure JavaScript nodes, we don't have Python node classes to map.
# If you were adding Python nodes as well, you would define them here.
NODE_CLASS_MAPPINGS = {}
# Similarly, no Python nodes means no display names to map here.
NODE_DISPLAY_NAME_MAPPINGS = {}
# This is the crucial part for JavaScript nodes.
# It tells ComfyUI to make the 'web' directory accessible to the frontend.
# ComfyUI will automatically look for JS files within this directory (and its subdirectories).
WEB_DIRECTORY = "./web" # Tells ComfyUI to serve files from the 'web' folder
# Optional: Standard Python practice to define what the module exports.
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS', 'WEB_DIRECTORY']
print("------------------------------------------")
print("Loaded Standalone Set/Get Nodes")
print("------------------------------------------")