This is work in progress. If you have any feedback please mail me at contact@josbalcaen.com

Execute Python code in Maya from Visual Studio

Category: Free work
Downloadable: Yes

Use visual studio to execute python code in Maya. If you haven’t got the Python Tools for Visual Studio installed, get a look at http://pytools.codeplex.com/

Setup

- Download (VS2012VS2013VS2015) ToMaya.vsix file and execute it (Microsoft Visual Studio Version Selector). This will install the extension.
- Type the following code in the Maya script editor and drag it to the shelf or use it in a startup script.

Updated all the links. Can’t get the download link for ToMaya.vsix working in the studio gallery, but added a alternative download link.
Also added the file from Mathijs Roosen (haven’t tested it myself)

False alarm on ToMaya not working… though the commandPort snippet still doesn’t work, it appears port :6000 is open and ToMaya is working… I didn’t realize it only sent the selected text, I assumed it sent the whole document. I’m fairly new to VS addins, I wonder if there’s a way to create a “send document” action by first doing a select all and then using ToMaya.