Beispiel #1
0
def mayaLaunch(logLvl='detail'):
    """
    Launch ToolManager

    :param logLvl : Log level ('critical', 'error', 'warning', 'info', 'debug', 'detail')
    :type logLvl: str
    :return: Launched window, Dock layout
    :rtype: ToolManager, mc.dockControl
    """
    window, dock = pUtil.launchQtWindow('ToolManager', 'mw_toolManager', ToolManager,
                                        toolKwargs=dict(logLvl=logLvl), dockName='td_toolManager')
    return window, dock
Beispiel #2
0
def mayaLaunch(logLvl='detail', parent=None):
    """
    Launch OverrideColor

    :param logLvl : Log level ('critical', 'error', 'warning', 'info', 'debug', 'detail')
    :type logLvl: str
    :param parent: Maya main window
    :type parent: QtCore.QObject
    :return: Launched window, Dock layout
    :rtype: OverrideColor, mc.dockControl
    """
    global window
    window, dock = pUtil.launchQtWindow('DisplayColor', 'mw_displayColor', DisplayColor,
                                        toolKwargs=dict(logLvl=logLvl, parent=parent))
    window.show()
    return window, dock