前言:
Maya 集成了 PySide,同时集成了qt designer,在 Maya 的安装目录下的 bin 文件夹中可以找到 designer.exe。
当我们单独运行 Maya 中的 designer.exe 的时候,会报错:This application failed to start because it could net find or load the Qt platform plugin "windows" in "" reinstalling the application may fix this problem.
在网上找了找,解决方法有几种:
既然可以通过第 1 中方式,我们就可以在 bat 中设置环境变量,然后运行 designer.exe,在bat 中的环境变量只存在于那一次的会话中:
set MAYA_LOCATION=E:\Program Files\Autodesk\Maya2017
start "" "%MAYA_LOCATION%\bin\\designer.exe"
在 Maya 的安装目录下的 bin 文件夹中找到 qt.conf 用记事本打开:
[Paths] Prefix=$(MAYA_LOCATION) Libraries=lib Binaries=bin Headers=include Data=. Plugins=qt-plugins Translations=qt-translations Qml2Imports=qml
修改 Prefix=$(MAYA_LOCATION) 为 Prefix=E:\\Program Files\\Autodesk\\Maya2017 (这里路径注意用 \\)。
Translations=qt-translations 是修改语言的,接下来讲。
使用这种方式,我们就可以发送 designer.exe 到桌面快捷键了。
当我们成功启动 designer.exe 后,发现找遍了菜单栏,都没找到语言的设置在哪,方式如下:
修改 qt.conf 中的 Translations=qt-translations 为 Translations=qt-translations\\designer_en.qm 即可把中文界面改为英文,有的qt.conf 如果没有 Translations=qt-translations 这一行,则自己添加。
结语:
不过 Maya 并没有 集成 qt 语言家 linguist.exe,所以最好还是安装 Python,然后使用 pip 来安装 PySide(Python2.x) 或者 PySide2(Python3.x)
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有