Wing with Maya API completion

136 views
Skip to first unread message

shawnp...@gmail.com

unread,
Nov 4, 2008, 3:47:26 PM11/4/08
to python_inside_maya
Hey Everyone,

I've been trying to find info on how to hook up API completion in
Wing. I thought I had some info on it in the past but can't seem to
find it again. It's kind of odd, somethings will complete and other
will not. Anyways I've got an email out to Wing support about it and
they're looking at what they can to to more closely integrate Wing
with Maya...I think

Cheers,
Shawn

Andrew Gerard

unread,
Nov 5, 2008, 11:15:20 AM11/5/08
to python_in...@googlegroups.com
Here are pi-files for Maya 2008 API which will give you auto-completion for the API in Wing. To set them up, extract the zipped maya file to the a directory you want to keep the pi-files in. You'll then want to point Wing to that containing folder. In Wing IDE preferences, go to Source Analysis > Advanced, then you'll want to insert a new Interface File Path to that containing folder.

It's important that you keep the pi-files in the maya folder under the contained folder since they mimic the package structure (i.e. import maya.OpenMaya)
http://wingware.com/pipermail/wingide-users/2008-May/005398.html

The biggest benefit with these is you'll get auto-complete for the Maya API. The second benefit is if you are using Wing IDE Pro, you'll get to see the API documentation like doc tags in the Source Analysis view. To note however, right now my parser doesn't get doc tags for inheritied methods, and it only gets the arguments/doc tags of the first description of overloaded methods.

One more thing, the documentation links in the doc tags point to the online documentation, if you want it to go to your local files, simply do a search and replace on the urls.

Let me know if you find any glaring problems aside from what I've mentioned.
-Andrew
maya2008_pi-files.zip

Shawn Patapoff

unread,
Nov 5, 2008, 1:51:39 PM11/5/08
to python_in...@googlegroups.com
Thanks for the info, so to be clear I've created a folder structure like:
/home/shawnpatapoff/WING_IDE/PI_FILES/maya

Do I want to point wing to:
/home/shawnpatapoff/WING_IDE/PI_FILES/maya or
/home/shawnpatapoff/WING_IDE/PI_FILES/

Also so I need an __init__.py in the Maya folder?

Thanks a ton for the information much appreciated.

I have some autocomplete but no completion on any class properties

Andrew Gerard

unread,
Nov 5, 2008, 2:26:35 PM11/5/08
to python_in...@googlegroups.com
point to /home/shawnpatapoff/WING_IDE/PI_FILES/


> Also so I need an __init__.py in the Maya folder?

Nope


> I have some autocomplete but no completion on any class properties

auto-complete doesn't work until after you import the module as an object.
See:
http://wingware.com/pipermail/wingide-users/2008-May/005416.html

basically this won't work:
import maya.OpenMaya
maya.OpenMaya.

but this will:
import maya.OpenMaya as om
om.

-Andrew
Reply all
Reply to author
Forward
0 new messages