Maya python incomplete autocompletion
<p>I'm really new with python programming in Maya and I'm trying to find a confortable way to write code
I would like to have an IDE where if I write "cmds.ls" the autocompletion give me the list off all the arguments
What I have now is a completion with some pointers and a function with "pass" inside
I know that until some version ago it was possible to have the list of all the arguments.
Am I wrong?
If I open the file "maya.cmds.pypredef" I have a list of function just declared with "pass" in the scope</p>

<p>I never used auto-completion but here is an easy way to get it in Sublime Text, I was not able to get the arguments though, only the function names. You should be able to do the same thing for any other IDE in a similar way.</p>

<ul>
<li>Go into your Maya install <em>folder/MayaXXXX/devkit/other/pymel/extras/completion/py</em>. </li>
<li>If that hierarchy doesn't exists and stops at devkit, there is a README with a link to download the devkit file for your Maya version.</li>
<li><p>Download the Maya Developer Kit and replace the folders (devkit, include, etc.) in your Maya installation.</p></li>
<li><p>Install the Jedi Package in Sublime Text (or any other)</p></li>
<li><p>Add that to the Jedi user settings file:</p>

<pre><code> {
     "python_package_paths": ["folder/MayaXXXX/devkit/other/pymel/extras/completion/py"]
 }
</code></pre></li>
</ul>

<p>You are all set!</p>

<p>To use the auto completion, make sure it is activated in Sublime Text and that you work on a Python file, import the maya.cmds module and do a Ctrl + Space. The auto-completion window should appear with allÂ the cmds commands.</p>

<pre><code>import maya.cmds as cmds
cmds.
</code></pre>

<p>The arguments do not seem to be implemented in the Maya devkit, they seem to be set as <code>*args, **keywords</code> for all functions. I don't remember seeing any auto-completion with arguments in Maya, and if it exists I am interested!</p>

<p>(<a href="http://www.janpijpers.com/mel-autocompletion-for-sublime-and-mayasublime/" rel="nofollow">Source</a>)</p>

<hr>

<p>After fiddling with the arguments of the functions in the file <strong>MayaXXXX\devkit\other\pymel\extras\completion\py\maya\cmds\__init__.py</strong>, I can say that it is not possible to have the auto-completion with the arguments unless Autodesk correctly build this file with them.</p>

<p>Maybe someone took the time to do it and shared the file, but I doubt it.</p>

python maya code-completion