Hi All,
This is my first post in the forum and I hope someone can help me out here.
I just started coding python in Sublime3, however it seems Sublime can't
find my Maya's stubs and also autocompletion is not working. For
autocompletion, I have installed SublimeJedi.
Here is a simple script I have:
basic.py
import maya.cmds as cmds
cmds.polySphere();
and here is the error which suggests sublime can't find my api and cmds
folder
ImportError: No module named 'maya'
[Finished in 0.0s with exit code 1]
Followings are all the info you may need to know:
Sublime Version: 3
Build System: Python 3.4
Installed Packages: SublimeJedi
OSX: Mavericks
Python Version: Python3.4
Maya Version: Maya2014
My Build setup for Python3.4
Python3.4.sublime-build
{
"cmd": ["python3.4", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
"encoding": "utf8",
"path": "/Library/Frameworks/Python.framework/Versions/3.4/bin/",
}
My project setup
myproject.sublime-project
{
"folders":
[
{
"path":
"/Users/hsabri/Library/Preferences/Autodesk/maya/2014-x64/scripts/zepto/basic/"
}
],
"settings": {
"python_interpreter_path":
"/Library/Frameworks/Python.framework/Versions/3.4/bin",
"python_package_paths": [
// My python package path
"/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages"
,
// Maya's python stubs
"/Applications/Autodesk/maya2014/devkit/devkit/other/pymel/extras/completion/py/"
]
}
}
Thanks again,
-h
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/d386897c-8bd4-4862-b21f-466befefc171%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.