#!/usr/bin/env python # -*- coding: utf-8 -*- #===================================== 1. Module Imports ===================================== import maya.OpenMayaUI as omui import maya.cmds as cmds import maya.mel as mel import webbrowser import sys import os from scripts.config import data try: from PySide2 import QtCore, QtGui, QtWidgets from shiboken2 import wrapInstance print("从PySide2加载Qt和shiboken2") except ImportError: try: from PySide6 import QtCore, QtGui, QtWidgets from shiboken6 import wrapInstance print("从PySide6加载Qt和shiboken6") except ImportError: try: from PySide import QtCore, QtGui, QtWidgets from shiboken import wrapInstance print("从PySide加载Qt和shiboken") except ImportError as e: print(f"Qt加载失败: {str(e)}") QtCore = QtGui = QtWidgets = None wrapInstance = None TOOL_NAME = "MetaFusion" TOOL_VERSION = "Beta 1.0.0" TOOL_AUTHOR = "CGNICO" TOOL_LANG = "zh_CN" TOOL_WSCL_NAME = "MetaFusionWorkSpace" TOOL_YEAR = "2025" TOOL_MOD_FILENAME = "MetaFusion.mod" SYSTEM_OS = "Windows" TOOL_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) ROOT_DIR = TOOL_PATH ICONS_PATH = os.path.join(TOOL_PATH, "icons") SCRIPTS_PATH = os.path.join(TOOL_PATH, "scripts") TOOL_STYLE_FILE = os.path.join(SCRIPTS_PATH, "ui", "style.qss")