This commit is contained in:
Jeffreytsai1004 2025-04-18 10:45:59 +08:00
parent 53f06ba4b6
commit b6ff5eb058
3 changed files with 6 additions and 3 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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,