Updated
This commit is contained in:
parent
53f06ba4b6
commit
b6ff5eb058
@ -24,6 +24,9 @@ DNA_IMG_PATH = os.path.join(ASSETS_PATH, "img").replace("\\", "/")
|
|||||||
DNA_VERSION = "MH.4" # Default using MetaHuman 4.0 version
|
DNA_VERSION = "MH.4" # Default using MetaHuman 4.0 version
|
||||||
METAHUMAN_PATH = os.path.join(ASSETS_PATH, DNA_VERSION).replace("\\", "/")
|
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
|
# System Information
|
||||||
import maya.cmds as cmds
|
import maya.cmds as cmds
|
||||||
SYSTEM_OS = "Windows" if cmds.about(os=True).lower().startswith("win") else "Linux"
|
SYSTEM_OS = "Windows" if cmds.about(os=True).lower().startswith("win") else "Linux"
|
||||||
|
@ -25,7 +25,7 @@ OS_NAME = platform.system()
|
|||||||
|
|
||||||
# Import configuration
|
# Import configuration
|
||||||
try:
|
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:
|
except ImportError:
|
||||||
# If unable to import config, use default paths
|
# If unable to import config, use default paths
|
||||||
TOOL_NAME = "Tool"
|
TOOL_NAME = "Tool"
|
||||||
|
@ -23,7 +23,6 @@ class SettingsUtils:
|
|||||||
self.default_settings = {
|
self.default_settings = {
|
||||||
"general": {
|
"general": {
|
||||||
"language": "zh_CN", # Chinese
|
"language": "zh_CN", # Chinese
|
||||||
"theme": "dark", # Dark theme
|
|
||||||
"auto_save": True, # Auto save
|
"auto_save": True, # Auto save
|
||||||
"save_interval": 10, # Auto save interval (minutes)
|
"save_interval": 10, # Auto save interval (minutes)
|
||||||
"show_welcome": True # Show welcome message
|
"show_welcome": True # Show welcome message
|
||||||
@ -52,7 +51,8 @@ class SettingsUtils:
|
|||||||
"font_size": 9,
|
"font_size": 9,
|
||||||
"icon_size": "medium", # small, medium, large
|
"icon_size": "medium", # small, medium, large
|
||||||
"show_tooltips": True,
|
"show_tooltips": True,
|
||||||
"confirm_on_exit": True
|
"confirm_on_exit": True,
|
||||||
|
"theme": "dark" # Dark theme
|
||||||
},
|
},
|
||||||
"performance": {
|
"performance": {
|
||||||
"undo_queue_size": 50,
|
"undo_queue_size": 50,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user