Skip to content

QML window within Maya opening but without GUI #378

@Illogicstudios

Description

@Illogicstudios

I have a code to launch a qml window with my plugins stored in a folder "plugins". The problem is that the gui that supposed to be in the qml qindow isn't showing. The plugins seems to work how they supposed to be. Here's the code :

import os
import sys
import importlib
import pyblish.api
import pyblish_maya
import pyblish_qml
from pyblish_qml import api as qml_api

import pyblish_test

# Dependencies
qml_api.register_python_executable(r"C:\Program Files\Autodesk\Maya2022\bin\mayapy.exe")
qml_api.register_pyqt5(r"R:\pipeline\networkInstall\python_lib\PyQt5")

# Plugins
pyblish.api.deregister_all_paths()
pyblish.api.register_target("test_target")
pyblish.api.register_plugin_path(os.path.join(os.path.dirname(pyblish_test.__file__), "plugins"))

# GUI
pyblish.api.register_gui("pyblish_qml")
pyblish_qml.settings.WindowTitle="Pyblish Test"
pyblish_qml.settings.HiddenSections = []
pyblish_maya.show()

Here's the logs :

2023-07-10.11-48-59.mov

I'm on Maya 2022 with Python 3.7.7. Here's my packages :
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions