Alpha Ver.0.1 release
This commit is contained in:
+19
@@ -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']
|
||||
Reference in New Issue
Block a user