mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
use qtpy in maya implementation instead of Qt
This commit is contained in:
parent
95939fb99e
commit
ccc2579697
9 changed files with 10 additions and 10 deletions
|
|
@ -39,7 +39,7 @@ class ToolWindows:
|
||||||
|
|
||||||
|
|
||||||
def edit_shader_definitions():
|
def edit_shader_definitions():
|
||||||
from Qt import QtWidgets
|
from qtpy import QtWidgets
|
||||||
from openpype.hosts.maya.api.shader_definition_editor import (
|
from openpype.hosts.maya.api.shader_definition_editor import (
|
||||||
ShaderDefinitionsEditor
|
ShaderDefinitionsEditor
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -116,7 +116,7 @@ RENDERLIKE_INSTANCE_FAMILIES = ["rendering", "vrayscene"]
|
||||||
|
|
||||||
def get_main_window():
|
def get_main_window():
|
||||||
"""Acquire Maya's main window"""
|
"""Acquire Maya's main window"""
|
||||||
from Qt import QtWidgets
|
from qtpy import QtWidgets
|
||||||
|
|
||||||
if self._parent is None:
|
if self._parent is None:
|
||||||
self._parent = {
|
self._parent = {
|
||||||
|
|
@ -3018,7 +3018,7 @@ def update_content_on_context_change():
|
||||||
|
|
||||||
|
|
||||||
def show_message(title, msg):
|
def show_message(title, msg):
|
||||||
from Qt import QtWidgets
|
from qtpy import QtWidgets
|
||||||
from openpype.widgets import message_window
|
from openpype.widgets import message_window
|
||||||
|
|
||||||
# Find maya main window
|
# Find maya main window
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import os
|
import os
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from Qt import QtWidgets, QtGui
|
from qtpy import QtWidgets, QtGui
|
||||||
|
|
||||||
import maya.utils
|
import maya.utils
|
||||||
import maya.cmds as cmds
|
import maya.cmds as cmds
|
||||||
|
|
|
||||||
|
|
@ -563,7 +563,7 @@ def on_save():
|
||||||
def on_open():
|
def on_open():
|
||||||
"""On scene open let's assume the containers have changed."""
|
"""On scene open let's assume the containers have changed."""
|
||||||
|
|
||||||
from Qt import QtWidgets
|
from qtpy import QtWidgets
|
||||||
from openpype.widgets import popup
|
from openpype.widgets import popup
|
||||||
|
|
||||||
cmds.evalDeferred(
|
cmds.evalDeferred(
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ Shader names are stored as simple text file over GridFS in mongodb.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
from Qt import QtWidgets, QtCore, QtGui
|
from qtpy import QtWidgets, QtCore, QtGui
|
||||||
from openpype.client.mongo import OpenPypeMongoConnection
|
from openpype.client.mongo import OpenPypeMongoConnection
|
||||||
from openpype import resources
|
from openpype import resources
|
||||||
import gridfs
|
import gridfs
|
||||||
|
|
|
||||||
|
|
@ -153,7 +153,7 @@ class ImportMayaLoader(load.LoaderPlugin):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from Qt import QtWidgets
|
from qtpy import QtWidgets
|
||||||
|
|
||||||
accept = QtWidgets.QMessageBox.Ok
|
accept = QtWidgets.QMessageBox.Ok
|
||||||
buttons = accept | QtWidgets.QMessageBox.Cancel
|
buttons = accept | QtWidgets.QMessageBox.Cancel
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
from Qt import QtWidgets, QtCore
|
from qtpy import QtWidgets, QtCore
|
||||||
|
|
||||||
from openpype.client import (
|
from openpype.client import (
|
||||||
get_asset_by_id,
|
get_asset_by_id,
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
import json
|
import json
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
||||||
from Qt import QtWidgets
|
from qtpy import QtWidgets
|
||||||
|
|
||||||
from openpype.client import get_representation_by_name
|
from openpype.client import get_representation_by_name
|
||||||
from openpype.pipeline import (
|
from openpype.pipeline import (
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,7 @@ class ValidateAssemblyModelTransforms(pyblish.api.InstancePlugin):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from Qt import QtWidgets
|
from qtpy import QtWidgets
|
||||||
from openpype.hosts.maya.api import lib
|
from openpype.hosts.maya.api import lib
|
||||||
|
|
||||||
# Store namespace in variable, cosmetics thingy
|
# Store namespace in variable, cosmetics thingy
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue