This commit is contained in:
2025-11-24 08:27:50 +08:00
parent 6940f17517
commit e76152945e
104 changed files with 10003 additions and 0 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()