This commit is contained in:
2025-12-05 08:08:44 +08:00
parent e0d4d0c364
commit 1f10abfb32
2909 changed files with 2470486 additions and 3024 deletions

View File

@@ -0,0 +1,33 @@
import os
DEBUG_MODE = os.getenv("NGSKINTOOLS_DEBUG", 'false') == 'true'
try:
from maya import cmds
BATCH_MODE = cmds.about(batch=True) == 1
except:
BATCH_MODE = True
def open_ui():
"""
opens ngSkinTools2 main UI window. if the window is already open, brings that workspace
window to front.
"""
from ngSkinTools2.ui import mainwindow
mainwindow.open()
def workspace_control_main_window():
"""
this function is used permanently by Maya's "workspace control", and acts as an alternative top-level entry point to open UI
"""
from ngSkinTools2.ui import mainwindow
from ngSkinTools2.ui.paintContextCallbacks import definePaintContextCallbacks
definePaintContextCallbacks()
mainwindow.resume_in_workspace_control()