Code Completion for Maya 2017/PyCharm CE 2016.3.2

1,262 views
Skip to first unread message

Andres Weber

unread,
Mar 6, 2017, 7:01:16 PM3/6/17
to Python Programming for Autodesk Maya
Hey Everyone,

So I recently have been trying to collect and compile information on setting up PyCharm properly for use as an IDE for Maya.  This is all well and good and the instructions are fine, however currently when trying to get the code completion working it doesn't seem to be functioning as the old tutorials used to say it does. most likely due to either changes in PyCharm or the actual code in the devkit stubs that Luma wrote.  Currently it seems that when adding the stubs path 

$MAYA_LOCATION/devkit/others/pymel/extras/completion/py 

it doesn't function the way it used to and instead just replaces all of the maya package's functions/modules with stub code which results in all function/class calls returning None.  If anyone knows where I went wrong I'm all ears.  I've tried manually placing the stubs in my pycharm skeleton user settings directory, but it just overwrites/deletes them when it rebuilds the skeleton caches.  

Here is the open ticket/forum post on the Jetbrains site.

If anyone has completion working and even if I have to get an older version of PyCharm I'm open to anything at this point.  Developing isn't impossible without auto-completion obviously just nice to have.



Example Older Tutorials:
Seems the old devkit used to have empty files...however now they're fully developed stubs.
Interesting ideas on how to customize the locations of the stubs...but didn't work for me.

Andres Weber

unread,
Mar 6, 2017, 7:22:17 PM3/6/17
to Python Programming for Autodesk Maya
Based on this forum thread:


I added the stubs manually to the Extended Definitions folder $PYCHARMHOME\python-skeletons since the user generated folder in your user prefs deletes them.  This seems to be working and my code still runs so...unless anyone knows why this is a horrible idea I'm going to consider this complete...
Reply all
Reply to author
Forward
0 new messages