This commit is contained in:
2025-11-30 14:49:16 +08:00
parent 021c593241
commit de46c4b073
1406 changed files with 526774 additions and 1221 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()