Exemplo n.º 1
0
def setup(console=False, port=None):
    """Setup integration

    Registers Pyblish for Maya plug-ins and appends an item to the File-menu

    Attributes:
        preload (bool): Preload the current GUI
        console (bool): Display console with GUI

    """

    if not os.name == "nt":
        return pyblish_integration.echo("Sorry, integration only"
                                        "supported on Windows.")

    def threaded_wrapper(func, *args, **kwargs):
        return nuke.executeInMainThreadWithResult(func, args, kwargs)

    pyblish_integration.register_python_executable(where("python"))
    pyblish_integration.register_dispatch_wrapper(threaded_wrapper)
    pyblish_integration.setup(console=console, port=port)

    register_plugins()
    register_host()
    add_to_filemenu()

    pyblish_integration.echo("pyblish: Integration loaded..")
Exemplo n.º 2
0
def setup(console=False, port=None):
    """Setup integration

    Registers Pyblish for Maya plug-ins and appends an item to the File-menu

    Attributes:
        preload (bool): Preload the current GUI
        console (bool): Display console with GUI

    """

    if not os.name == "nt":
        return pyblish_integration.echo("Sorry, integration only"
                                        "supported on Windows.")

    def threaded_wrapper(func, *args, **kwargs):
        return nuke.executeInMainThreadWithResult(func, args, kwargs)

    pyblish_integration.register_python_executable(where("python"))
    pyblish_integration.register_dispatch_wrapper(threaded_wrapper)
    pyblish_integration.setup(console=console, port=port)

    register_plugins()
    register_host()
    add_to_filemenu()

    pyblish_integration.echo("pyblish: Integration loaded..")
Exemplo n.º 3
0
def setup(console=False):
    """Setup integration
    Registers Pyblish for Hiero plug-ins and appends an item to the File-menu
    Attributes:
        console (bool): Display console with GUI
    """
    def threaded_wrapper(func, *args, **kwargs):
        return hiero.core.executeInMainThreadWithResult(func, *args, **kwargs)

    pyblish_integration.register_python_executable(where("python"))
    pyblish_integration.register_dispatch_wrapper(threaded_wrapper)
    pyblish_integration.setup(console)

    register_plugins()
    add_to_filemenu()
    register_host()

    pyblish_integration.echo("pyblish: Integration loaded..")
Exemplo n.º 4
0
def setup(console=False):
    """Setup integration
    Registers Pyblish for Hiero plug-ins and appends an item to the File-menu
    Attributes:
        console (bool): Display console with GUI
    """

    def threaded_wrapper(func, *args, **kwargs):
        return hiero.core.executeInMainThreadWithResult(func, *args, **kwargs)

    pyblish_integration.register_python_executable(where("python"))
    pyblish_integration.register_dispatch_wrapper(threaded_wrapper)
    pyblish_integration.setup(console)

    register_plugins()
    add_to_filemenu()
    register_host()

    pyblish_integration.echo("pyblish: Integration loaded..")