Maya syntax highlighting in sublime

117 views
Skip to first unread message

kevco...@gmail.com

unread,
Jun 15, 2015, 4:00:04 PM6/15/15
to python_in...@googlegroups.com
Hey Guys,

trying to get syntax highlighting working in sublime, but I can't figure this out for the life of me, I really wish the instructions weren't so vague.

Can someone who actually has this working please help me out. I've installed both the MayaSublime plugin, and Jedi. It says I need to add C:/Program Files/Autodesk/Maya2015/devkit/other/pymel/extras/completion/py/ to the paths.... well, Do I do that inside the Jedi user settings file, or actually add it to the path environment variable?

Thanks!

Mahmoodreza Aarabi

unread,
Jun 15, 2015, 4:06:12 PM6/15/15
to python_in...@googlegroups.com
hey
what language you need to be highlighted?


--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/1efb7c8b-e11b-4c67-9633-dfc0b08a3ca5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--


Bests,
madoodia

kevco...@gmail.com

unread,
Jun 15, 2015, 4:07:43 PM6/15/15
to python_in...@googlegroups.com
python 1.0 api

Mahmoodreza Aarabi

unread,
Jun 15, 2015, 4:11:28 PM6/15/15
to python_in...@googlegroups.com
if you mean python highlighting sublime have and it detect it automatically,
if you need to show you classes and functions of it i didn't use api in sublime but i used pyside in it, for that you should add 'C:\Program Files\Autodesk\Maya2015\Python\Lib\site-packages;' (your directory)
in this way my sublime detect all pyside classes.
but wait for other guys to help better
good luck

On Tue, Jun 16, 2015 at 12:37 AM, <kevco...@gmail.com> wrote:
python 1.0 api


--
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 python_inside_m...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--


Bests,
madoodia

kevco...@gmail.com

unread,
Jun 15, 2015, 4:14:32 PM6/15/15
to python_in...@googlegroups.com
sorry, I meant code completion

Mahmoodreza Aarabi

unread,
Jun 15, 2015, 4:26:03 PM6/15/15
to python_in...@googlegroups.com
this way works for code completion for me for pyside.
test it

On Tue, Jun 16, 2015 at 12:44 AM, <kevco...@gmail.com> wrote:
sorry, I meant code completion


--
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 python_inside_m...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--


Bests,
madoodia

kevco...@gmail.com

unread,
Jun 15, 2015, 5:03:43 PM6/15/15
to python_in...@googlegroups.com, kevco...@gmail.com
anyone else?

Justin Israel

unread,
Jun 15, 2015, 5:05:13 PM6/15/15
to python_in...@googlegroups.com
This is what I add to my Sublime project file:

{
...
    "settings":
    {
        "python_interpreter_path": "/path/to/python",
        "python_package_paths":
        [
            "/path/to/devkit/other/pymel/extra/completion/py",
            "/path/to/other/libs"
        ]
    }
}

I use Jedi and it picks these up. 

kevco...@gmail.com

unread,
Jun 15, 2015, 5:13:15 PM6/15/15
to python_in...@googlegroups.com
ah crap, in the Project settings.

I was entering that stuff into the Jedi, user-settings.

All works now, thanks!

Justin Israel

unread,
Jun 15, 2015, 5:17:03 PM6/15/15
to python_in...@googlegroups.com
Ah cool. easy fix then! Makes sense when you want to customize the path-ing per project eh?

--
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 python_inside_m...@googlegroups.com.

kevco...@gmail.com

unread,
Jun 15, 2015, 5:59:13 PM6/15/15
to python_in...@googlegroups.com
yeahhh, haha, that does make sense :D

33th...@gmail.com

unread,
Jun 16, 2015, 12:32:52 AM6/16/15
to python_in...@googlegroups.com, kevco...@gmail.com
maybe this helps someone else in a near/distant future...

But I figured out If I add only this to the Preferences > Package Settings > Jedi > Settings-User file, I get auto-completion without having to specify it in the settings for a particular project.


{
// additional python package path list
"python_package_paths": ["C:/Program Files/Autodesk/Maya2016/devkit/other/pymel/extras/completion/py"],
}


Cheers!
Reply all
Reply to author
Forward
0 new messages