Skip to content

Commit

Permalink
Maya-2025 uses Qt6 and PySide6
Browse files Browse the repository at this point in the history
Signed-off-by: Christian López Barrón <[email protected]>
  • Loading branch information
chrizzFTD committed Oct 26, 2024
1 parent 2ddeaa0 commit bb6ee30
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion grill/__startup__/maya.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
from maya import cmds
from PySide2 import QtCore

if cmds.about(qt=True).startswith("6"):
from PySide6 import QtCore
else:
from PySide2 import QtCore


def install():
Expand Down
8 changes: 6 additions & 2 deletions grill/views/maya.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
from functools import cache, partial

from maya import cmds
from PySide2 import QtWidgets
from shiboken2 import wrapInstance
from ._qt import QtWidgets

if cmds.about(qt=True).startswith("6"):
from shiboken6 import wrapInstance
else:
from shiboken2 import wrapInstance

import ufe
import mayaUsd
Expand Down

0 comments on commit bb6ee30

Please sign in to comment.