Alpha Ver.0.1 release

This commit is contained in:
MrForExample
2024-01-18 21:23:41 +01:00
parent 748957b6de
commit 7e89ffdeb2
42 changed files with 10799 additions and 1 deletions
+19
View File
@@ -0,0 +1,19 @@
import importlib
import inspect
NODE_CLASS_MAPPINGS = {}
NODE_DISPLAY_NAME_MAPPINGS = {}
nodes_filename = "nodes"
module = importlib.import_module(f".{nodes_filename}", package=__name__)
for name, cls in inspect.getmembers(module, inspect.isclass):
if cls.__module__ == module.__name__:
name = name.replace("_", " ")
node = f"[ComfyUI-3D] {name}"
disp = f"{name}"
NODE_CLASS_MAPPINGS[node] = cls
NODE_DISPLAY_NAME_MAPPINGS[node] = disp
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']