Update preview nodes
- Support custom background color in preview node - Fix Preview node does not update automatically with same mesh name - Add system config file that allow custom clients IP address
This commit is contained in:
+11
-1
@@ -1,6 +1,7 @@
|
||||
import os
|
||||
import sys
|
||||
import folder_paths as comfy_paths
|
||||
from pyhocon import ConfigFactory
|
||||
|
||||
ROOT_PATH = os.path.join(comfy_paths.get_folder_paths("custom_nodes")[0], "ComfyUI-3D-Pack")
|
||||
sys.path.append(ROOT_PATH)
|
||||
@@ -9,7 +10,16 @@ import shutil
|
||||
import __main__
|
||||
import importlib
|
||||
import inspect
|
||||
from .webserver.server import server
|
||||
from .webserver.server import server, set_web_conf
|
||||
|
||||
conf_path = os.path.join(ROOT_PATH, "configs/system.conf")
|
||||
# Configuration
|
||||
f = open(conf_path)
|
||||
conf_text = f.read()
|
||||
f.close()
|
||||
sys_conf = ConfigFactory.parse_string(conf_text)
|
||||
|
||||
set_web_conf(sys_conf['web'])
|
||||
|
||||
NODE_CLASS_MAPPINGS = {}
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {}
|
||||
|
||||
Reference in New Issue
Block a user