Maya 2023 devkit missing PyMEL completion stubs

1,432 views
Skip to first unread message

Bradley Newman

unread,
Oct 5, 2022, 4:41:10 PM10/5/22
to Python Programming for Autodesk Maya

The Maya 2022 devkit contained PyMEL completion stubs in the folder: Autodesk_Maya_2022_4_Update_DEVKIT_Windows\devkitBase\devkit\other\Python27\pymel\extras\completion\py

 

In the Maya 2023 devkit this folder is missing.

Maya 2022 I believe had PyMEL 1.2, while Maya 2023 has PyMEL 1.3. Is it OK to just substitute the 1.2 stubs in something like PyCharm to setup autocompletion for PyMEL 1.3?

Michal Bereznicki

unread,
Oct 21, 2022, 3:58:19 PM10/21/22
to Python Programming for Autodesk Maya
I have two solutions for that,

First, if you are using Visual script code, you could just download the MayaCode and Mayapy plugins and you are good to go! (Alternatively, you can grab their stub files)
Second, definitely more difficult one, generate the stub files yourself, You could go to the Pymel Github and in maintenance follow the steps (Step 6) to generate your own stub files

I hope this helps :)

Michael M

unread,
Nov 24, 2022, 8:26:23 PM11/24/22
to Python Programming for Autodesk Maya
I've tried both stubs from devkit 2022 and from mayapy vscode plugin. Have to admire that mayapy stubs are way better documented and comfortable to work with. 
Just grab them in C:\Users\username\.vscode\extensions\fxtd-odyssey.mayapy-1.0.4\mayaSDK and copy somewhere or set path to this folder in pycharm. 

пятница, 21 октября 2022 г. в 19:58:19 UTC, michalberez...@gmail.com:
Reply all
Reply to author
Forward
0 new messages