mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #293 from ynput/enhancement/add-maya2025-support
Maya: add support for Maya 2025
This commit is contained in:
commit
70e109d54c
4 changed files with 32 additions and 11 deletions
|
|
@ -22,15 +22,15 @@ class MayaAddon(AYONAddon, IHostAddon):
|
|||
if norm_path not in new_python_paths:
|
||||
new_python_paths.append(norm_path)
|
||||
|
||||
# add vendor path
|
||||
new_python_paths.append(
|
||||
os.path.join(MAYA_ROOT_DIR, "vendor", "python")
|
||||
)
|
||||
env["PYTHONPATH"] = os.pathsep.join(new_python_paths)
|
||||
|
||||
# Set default environments
|
||||
envs = {
|
||||
"AYON_LOG_NO_COLORS": "1",
|
||||
# For python module 'qtpy'
|
||||
"QT_API": "PySide2",
|
||||
# For python module 'Qt'
|
||||
"QT_PREFERRED_BINDING": "PySide2"
|
||||
}
|
||||
for key, value in envs.items():
|
||||
env[key] = value
|
||||
|
|
|
|||
|
|
@ -12,11 +12,7 @@ import logging
|
|||
from maya import cmds
|
||||
from maya import mel
|
||||
|
||||
try:
|
||||
from PySide2 import QtGui, QtWidgets
|
||||
except ImportError:
|
||||
from PySide import QtGui
|
||||
QtWidgets = QtGui
|
||||
from qtpy import QtGui, QtWidgets
|
||||
|
||||
version_info = (2, 3, 0)
|
||||
|
||||
|
|
@ -873,7 +869,11 @@ def _get_screen_size():
|
|||
if _in_standalone():
|
||||
return [0, 0]
|
||||
|
||||
rect = QtWidgets.QDesktopWidget().screenGeometry(-1)
|
||||
try:
|
||||
rect = QtWidgets.QDesktopWidget().screenGeometry(-1)
|
||||
except AttributeError:
|
||||
# in Qt6 it is a different call
|
||||
rect = QtWidgets.QApplication.primaryScreen().availableGeometry()
|
||||
return [rect.width(), rect.height()]
|
||||
|
||||
|
||||
|
|
@ -92,7 +92,8 @@ line-ending = "auto"
|
|||
|
||||
[tool.codespell]
|
||||
# Ignore words that are not in the dictionary.
|
||||
ignore-words-list = "ayon,ynput,parms,parm,hda"
|
||||
ignore-words-list = "ayon,ynput,parms,parm,hda,developpement"
|
||||
|
||||
skip = "./.*,./package/*,*/vendor/*,*/unreal/integration/*,*/aftereffects/api/extension/js/libs/*"
|
||||
count = true
|
||||
quiet-level = 3
|
||||
|
|
|
|||
|
|
@ -7,6 +7,26 @@
|
|||
"host_name": "maya",
|
||||
"environment": "{\n \"MAYA_DISABLE_CLIC_IPM\": \"Yes\",\n \"MAYA_DISABLE_CIP\": \"Yes\",\n \"MAYA_DISABLE_CER\": \"Yes\",\n \"PYMEL_SKIP_MEL_INIT\": \"Yes\",\n \"LC_ALL\": \"C\"\n}\n",
|
||||
"variants": [
|
||||
{
|
||||
"name": "2025",
|
||||
"label": "2025",
|
||||
"executables": {
|
||||
"windows": [
|
||||
"C:\\Program Files\\Autodesk\\Maya2025\\bin\\maya.exe"
|
||||
],
|
||||
"darwin": ["/Applications/Autodesk/maya2025/Maya.app"],
|
||||
"linux": [
|
||||
"/usr/autodesk/maya2025/bin/maya"
|
||||
]
|
||||
},
|
||||
"arguments": {
|
||||
"windows": [],
|
||||
"darwin": [],
|
||||
"linux": []
|
||||
},
|
||||
"environment": "{\n \"MAYA_VERSION\": \"2025\"\n}",
|
||||
"use_python_2": false
|
||||
},
|
||||
{
|
||||
"name": "2024",
|
||||
"label": "2024",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue