前言
Maya拓展开发过程中,创建开发环境踩到的坑。
开发环境相关问题
-
Pycharm 链接报错(Maya2019以下版本适用)
Error: line 1: TypeError: file line 1: ‘encoding’ is an invalid keyword argument for this function #
python2和python3冲突导致的建议下载低版本Mayacharm3.2.6以下:Mayacharm历史版本
-
高版本Maya如何代码补全
对应开发包缺少一些文件,从低一点的开发包寻找对应文件。见issue -
高版本如果要使用QT designer工具如何将uic转换为Pyside2的文件:
照理来说开发包应该是有对应的工具,但Maya2023亲测工具无效。最简单暴力的方法是新建一个python3的环境安装Pyside6,在环境文件下会有对应的pyside6转换工具,IDE使用这个工具进行转换工作,然后生成的文件中修改代码,例如:from PySide2.QtCore import * from PySide2.QtGui import * from PySide2.QtWidgets import *
Maya资料集合
Charcoal Editor 2
-
语言切换:https://help.autodesk.com/view/MAYAUL/2024/CHS/?guid=GUID-93D77B11-4EA6-4998-B81B-0E23830A2398
-
Maya pip:
numpy:mayapy -m pip install numpy
mayapy -m pip install maya-stubs
Maya环境配置:https://zhuanlan.zhihu.com/p/652537743
Maya开发包:https://aps.autodesk.com/developer/overview/maya
Maya python mel:https://help.autodesk.com/view/MAYAUL/2023/ENU/?guid=__CommandsPython_index_html
https://help.autodesk.com/view/MAYAUL/2018/ENU/?guid=__CommandsPython_index_html
Maya文档:https://help.autodesk.com/view/MAYAUL/2022/CHS/?guid=GUID-49701DA7-9224-424D-93F7-EC1DA779C99C
-
OpenMaya:
https://download.autodesk.com/us/maya/2009help/API/group___open_maya.html
-
command
https://help.autodesk.com/cloudhelp/2024/ENU/Maya-Tech-Docs/Commands/index.html
https://help.autodesk.com/view/MAYAUL/2023/ENU/?guid=__CommandsPython_index_html -
pyside2 入门:
https://zhuanlan.zhihu.com/p/621303571