diff --git a/config.py b/config.py index e96327e..9f84952 100644 --- a/config.py +++ b/config.py @@ -24,6 +24,9 @@ DNA_IMG_PATH = os.path.join(ASSETS_PATH, "img").replace("\\", "/") DNA_VERSION = "MH.4" # Default using MetaHuman 4.0 version METAHUMAN_PATH = os.path.join(ASSETS_PATH, DNA_VERSION).replace("\\", "/") +# DNA Calibration Path +DNA_CALIB_PATH = os.path.join(TOOL_ROOT, "Reference", "MetaHuman-DNA-Calibration").replace("\\", "/") + # System Information import maya.cmds as cmds SYSTEM_OS = "Windows" if cmds.about(os=True).lower().startswith("win") else "Linux" diff --git a/scripts/Main.py b/scripts/Main.py index 4666f96..3ff4388 100644 --- a/scripts/Main.py +++ b/scripts/Main.py @@ -25,7 +25,7 @@ OS_NAME = platform.system() # Import configuration try: - from config import TOOL_NAME, TOOL_VERSION, TOOL_AUTHOR + from config import TOOL_NAME, TOOL_VERSION, TOOL_AUTHOR, SCRIPTS_PATH, ASSETS_PATH, ICONS_PATH, PLUGINS_PATH, DNA_FILE_PATH, DNA_IMG_PATH, PYTHON_VERSION except ImportError: # If unable to import config, use default paths TOOL_NAME = "Tool" diff --git a/scripts/utils/settings_utils.py b/scripts/utils/settings_utils.py index 950b79e..1cd7a98 100644 --- a/scripts/utils/settings_utils.py +++ b/scripts/utils/settings_utils.py @@ -23,7 +23,6 @@ class SettingsUtils: self.default_settings = { "general": { "language": "zh_CN", # Chinese - "theme": "dark", # Dark theme "auto_save": True, # Auto save "save_interval": 10, # Auto save interval (minutes) "show_welcome": True # Show welcome message @@ -52,7 +51,8 @@ class SettingsUtils: "font_size": 9, "icon_size": "medium", # small, medium, large "show_tooltips": True, - "confirm_on_exit": True + "confirm_on_exit": True, + "theme": "dark" # Dark theme }, "performance": { "undo_queue_size": 50,