# -*- coding: utf-8 -*-
import os
import sys


mliber_path = os.path.dirname(__file__)
mliber_path = mliber_path.replace("\\", "/")
site_packages = os.path.join(mliber_path, "mliber_site_packages")
site_packages = site_packages.replace("\\", "/")
if mliber_path not in sys.path:
    sys.path.insert(0, mliber_path)
if site_packages not in sys.path:
    sys.path.append(site_packages)

from mliber_libs.qt_libs.render_ui import render_ui
from mliber_libs.dcc_libs.dcc import Dcc
from mliber_widgets.main_widget import MainWidget
from mliber_qt_components.splash import splash


PARENT_WINDOW = Dcc().parent_win()


# ######################################################################################
# ##################################### show standalone ################################
# ######################################################################################
@splash
def show():
    import ctypes

    ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID("teamones_desktop")
    with render_ui():
        mliber_widget = MainWidget(PARENT_WINDOW)
        mliber_widget.show()
        return mliber_widget


# ######################################################################################
# ##################################### show in maya ###################################
# ######################################################################################
def show_in_maya_panel(*args):
    """
    show in maya panel
    :param args:
    :return:
    """
    from mliber_libs.maya_libs.maya_utils import show_as_panel
    show_as_panel(MainWidget())


def show_in_maya():
    """
    add menu in maya, and make the command connections
    :return:
    """
    import maya.cmds as mc
    import mliber
    liber_menu = mc.menu('mliber', label="MLiber", tearOff=True, parent='MayaWindow')
    mc.menuItem(label="Show...", tearOff=True, parent=liber_menu, c=lambda *args: mliber.show())
    mc.menuItem(label="show in panel...", tearOff=True, parent=liber_menu, c=mliber.show_in_maya_panel)


def maya_start_up():
    """
    when maya start up, execute.
    :return:
    """
    import maya.utils as mu
    mu.executeDeferred("import mliber;reload(mliber);mliber.show_in_maya()")


# ######################################################################################
# ##################################### show in houdini ################################
# ######################################################################################
@splash
def show_in_houdini():
    with render_ui():
        import hou
        mliber_widget = MainWidget(PARENT_WINDOW)
        mliber_widget.setStyleSheet(hou.qt.styleSheet())
        mliber_widget.setProperty("houdiniStyle", True)
        mliber_widget.show()
        return mliber_widget


# ######################################################################################
# ##################################### show in unreal #################################
# ######################################################################################

def show_in_unreal():
    import unreal
    from mliber_libs.unreal_libs import init_qt_app
    init_qt_app.init_qt_app()
    mliber_widget = MainWidget()
    unreal.parent_external_window_to_slate(mliber_widget.winId())
    mliber_widget.show()
    mliber_widget.raise_()
    mliber_widget.activateWindow()
    return mliber_widget


if __name__ == "__main__":
    show()





e1922d4521febe7787712d7fde6cfb86f0ed9fe4
<mask token>


@splash
def show():
    import ctypes
    ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(
        'teamones_desktop')
    with render_ui():
        mliber_widget = MainWidget(PARENT_WINDOW)
        mliber_widget.show()
        return mliber_widget


def show_in_maya_panel(*args):
    """
    show in maya panel
    :param args:
    :return:
    """
    from mliber_libs.maya_libs.maya_utils import show_as_panel
    show_as_panel(MainWidget())


def show_in_maya():
    """
    add menu in maya, and make the command connections
    :return:
    """
    import maya.cmds as mc
    import mliber
    liber_menu = mc.menu('mliber', label='MLiber', tearOff=True, parent=
        'MayaWindow')
    mc.menuItem(label='Show...', tearOff=True, parent=liber_menu, c=lambda
        *args: mliber.show())
    mc.menuItem(label='show in panel...', tearOff=True, parent=liber_menu,
        c=mliber.show_in_maya_panel)


def maya_start_up():
    """
    when maya start up, execute.
    :return:
    """
    import maya.utils as mu
    mu.executeDeferred('import mliber;reload(mliber);mliber.show_in_maya()')


<mask token>


def show_in_unreal():
    import unreal
    from mliber_libs.unreal_libs import init_qt_app
    init_qt_app.init_qt_app()
    mliber_widget = MainWidget()
    unreal.parent_external_window_to_slate(mliber_widget.winId())
    mliber_widget.show()
    mliber_widget.raise_()
    mliber_widget.activateWindow()
    return mliber_widget


<mask token>

<mask token>
if mliber_path not in sys.path:
    sys.path.insert(0, mliber_path)
if site_packages not in sys.path:
    sys.path.append(site_packages)
<mask token>


@splash
def show():
    import ctypes
    ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(
        'teamones_desktop')
    with render_ui():
        mliber_widget = MainWidget(PARENT_WINDOW)
        mliber_widget.show()
        return mliber_widget


def show_in_maya_panel(*args):
    """
    show in maya panel
    :param args:
    :return:
    """
    from mliber_libs.maya_libs.maya_utils import show_as_panel
    show_as_panel(MainWidget())


def show_in_maya():
    """
    add menu in maya, and make the command connections
    :return:
    """
    import maya.cmds as mc
    import mliber
    liber_menu = mc.menu('mliber', label='MLiber', tearOff=True, parent=
        'MayaWindow')
    mc.menuItem(label='Show...', tearOff=True, parent=liber_menu, c=lambda
        *args: mliber.show())
    mc.menuItem(label='show in panel...', tearOff=True, parent=liber_menu,
        c=mliber.show_in_maya_panel)


def maya_start_up():
    """
    when maya start up, execute.
    :return:
    """
    import maya.utils as mu
    mu.executeDeferred('import mliber;reload(mliber);mliber.show_in_maya()')


@splash
def show_in_houdini():
    with render_ui():
        import hou
        mliber_widget = MainWidget(PARENT_WINDOW)
        mliber_widget.setStyleSheet(hou.qt.styleSheet())
        mliber_widget.setProperty('houdiniStyle', True)
        mliber_widget.show()
        return mliber_widget


def show_in_unreal():
    import unreal
    from mliber_libs.unreal_libs import init_qt_app
    init_qt_app.init_qt_app()
    mliber_widget = MainWidget()
    unreal.parent_external_window_to_slate(mliber_widget.winId())
    mliber_widget.show()
    mliber_widget.raise_()
    mliber_widget.activateWindow()
    return mliber_widget


if __name__ == '__main__':
    show()

<mask token>
mliber_path = os.path.dirname(__file__)
mliber_path = mliber_path.replace('\\', '/')
site_packages = os.path.join(mliber_path, 'mliber_site_packages')
site_packages = site_packages.replace('\\', '/')
if mliber_path not in sys.path:
    sys.path.insert(0, mliber_path)
if site_packages not in sys.path:
    sys.path.append(site_packages)
<mask token>
PARENT_WINDOW = Dcc().parent_win()


@splash
def show():
    import ctypes
    ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(
        'teamones_desktop')
    with render_ui():
        mliber_widget = MainWidget(PARENT_WINDOW)
        mliber_widget.show()
        return mliber_widget


def show_in_maya_panel(*args):
    """
    show in maya panel
    :param args:
    :return:
    """
    from mliber_libs.maya_libs.maya_utils import show_as_panel
    show_as_panel(MainWidget())


def show_in_maya():
    """
    add menu in maya, and make the command connections
    :return:
    """
    import maya.cmds as mc
    import mliber
    liber_menu = mc.menu('mliber', label='MLiber', tearOff=True, parent=
        'MayaWindow')
    mc.menuItem(label='Show...', tearOff=True, parent=liber_menu, c=lambda
        *args: mliber.show())
    mc.menuItem(label='show in panel...', tearOff=True, parent=liber_menu,
        c=mliber.show_in_maya_panel)


def maya_start_up():
    """
    when maya start up, execute.
    :return:
    """
    import maya.utils as mu
    mu.executeDeferred('import mliber;reload(mliber);mliber.show_in_maya()')


@splash
def show_in_houdini():
    with render_ui():
        import hou
        mliber_widget = MainWidget(PARENT_WINDOW)
        mliber_widget.setStyleSheet(hou.qt.styleSheet())
        mliber_widget.setProperty('houdiniStyle', True)
        mliber_widget.show()
        return mliber_widget


def show_in_unreal():
    import unreal
    from mliber_libs.unreal_libs import init_qt_app
    init_qt_app.init_qt_app()
    mliber_widget = MainWidget()
    unreal.parent_external_window_to_slate(mliber_widget.winId())
    mliber_widget.show()
    mliber_widget.raise_()
    mliber_widget.activateWindow()
    return mliber_widget


if __name__ == '__main__':
    show()

import os
import sys
mliber_path = os.path.dirname(__file__)
mliber_path = mliber_path.replace('\\', '/')
site_packages = os.path.join(mliber_path, 'mliber_site_packages')
site_packages = site_packages.replace('\\', '/')
if mliber_path not in sys.path:
    sys.path.insert(0, mliber_path)
if site_packages not in sys.path:
    sys.path.append(site_packages)
from mliber_libs.qt_libs.render_ui import render_ui
from mliber_libs.dcc_libs.dcc import Dcc
from mliber_widgets.main_widget import MainWidget
from mliber_qt_components.splash import splash
PARENT_WINDOW = Dcc().parent_win()


@splash
def show():
    import ctypes
    ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(
        'teamones_desktop')
    with render_ui():
        mliber_widget = MainWidget(PARENT_WINDOW)
        mliber_widget.show()
        return mliber_widget


def show_in_maya_panel(*args):
    """
    show in maya panel
    :param args:
    :return:
    """
    from mliber_libs.maya_libs.maya_utils import show_as_panel
    show_as_panel(MainWidget())


def show_in_maya():
    """
    add menu in maya, and make the command connections
    :return:
    """
    import maya.cmds as mc
    import mliber
    liber_menu = mc.menu('mliber', label='MLiber', tearOff=True, parent=
        'MayaWindow')
    mc.menuItem(label='Show...', tearOff=True, parent=liber_menu, c=lambda
        *args: mliber.show())
    mc.menuItem(label='show in panel...', tearOff=True, parent=liber_menu,
        c=mliber.show_in_maya_panel)


def maya_start_up():
    """
    when maya start up, execute.
    :return:
    """
    import maya.utils as mu
    mu.executeDeferred('import mliber;reload(mliber);mliber.show_in_maya()')


@splash
def show_in_houdini():
    with render_ui():
        import hou
        mliber_widget = MainWidget(PARENT_WINDOW)
        mliber_widget.setStyleSheet(hou.qt.styleSheet())
        mliber_widget.setProperty('houdiniStyle', True)
        mliber_widget.show()
        return mliber_widget


def show_in_unreal():
    import unreal
    from mliber_libs.unreal_libs import init_qt_app
    init_qt_app.init_qt_app()
    mliber_widget = MainWidget()
    unreal.parent_external_window_to_slate(mliber_widget.winId())
    mliber_widget.show()
    mliber_widget.raise_()
    mliber_widget.activateWindow()
    return mliber_widget


if __name__ == '__main__':
    show()

# -*- coding: utf-8 -*-
import os
import sys


mliber_path = os.path.dirname(__file__)
mliber_path = mliber_path.replace("\\", "/")
site_packages = os.path.join(mliber_path, "mliber_site_packages")
site_packages = site_packages.replace("\\", "/")
if mliber_path not in sys.path:
    sys.path.insert(0, mliber_path)
if site_packages not in sys.path:
    sys.path.append(site_packages)

from mliber_libs.qt_libs.render_ui import render_ui
from mliber_libs.dcc_libs.dcc import Dcc
from mliber_widgets.main_widget import MainWidget
from mliber_qt_components.splash import splash


PARENT_WINDOW = Dcc().parent_win()


# ######################################################################################
# ##################################### show standalone ################################
# ######################################################################################
@splash
def show():
    import ctypes

    ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID("teamones_desktop")
    with render_ui():
        mliber_widget = MainWidget(PARENT_WINDOW)
        mliber_widget.show()
        return mliber_widget


# ######################################################################################
# ##################################### show in maya ###################################
# ######################################################################################
def show_in_maya_panel(*args):
    """
    show in maya panel
    :param args:
    :return:
    """
    from mliber_libs.maya_libs.maya_utils import show_as_panel
    show_as_panel(MainWidget())


def show_in_maya():
    """
    add menu in maya, and make the command connections
    :return:
    """
    import maya.cmds as mc
    import mliber
    liber_menu = mc.menu('mliber', label="MLiber", tearOff=True, parent='MayaWindow')
    mc.menuItem(label="Show...", tearOff=True, parent=liber_menu, c=lambda *args: mliber.show())
    mc.menuItem(label="show in panel...", tearOff=True, parent=liber_menu, c=mliber.show_in_maya_panel)


def maya_start_up():
    """
    when maya start up, execute.
    :return:
    """
    import maya.utils as mu
    mu.executeDeferred("import mliber;reload(mliber);mliber.show_in_maya()")


# ######################################################################################
# ##################################### show in houdini ################################
# ######################################################################################
@splash
def show_in_houdini():
    with render_ui():
        import hou
        mliber_widget = MainWidget(PARENT_WINDOW)
        mliber_widget.setStyleSheet(hou.qt.styleSheet())
        mliber_widget.setProperty("houdiniStyle", True)
        mliber_widget.show()
        return mliber_widget


# ######################################################################################
# ##################################### show in unreal #################################
# ######################################################################################

def show_in_unreal():
    import unreal
    from mliber_libs.unreal_libs import init_qt_app
    init_qt_app.init_qt_app()
    mliber_widget = MainWidget()
    unreal.parent_external_window_to_slate(mliber_widget.winId())
    mliber_widget.show()
    mliber_widget.raise_()
    mliber_widget.activateWindow()
    return mliber_widget


if __name__ == "__main__":
    show()




