A Visual Studio Code extension with support for coding for Maya.
Syntax Highlight MEL scripts.
Hierarchical document tree in the outline view.
Breadcrumbs support.
Autocomplete MEL commands as you type ( along with flag info )
Autocomplete MEL variables as you type
Send code to Maya via command port (MEL or Python).
Support auto closing brackets, quotes and ticks
Open the Command Palette (Command+Shift+P on macOS and Ctrl+Shift+P on Windows/Linux) and type in one of the following commands:
Command | Description |
---|---|
Maya: Send Python Code to Maya |
Send Python code from current editor in Maya. |
Maya: Send MEL Code to Maya |
Send MEL code from current editor in Maya. |
You can also select a block of code in the editor
and Right-click -> Send Code to Maya
, this is based on the current working language (Mel or Python).
To open the correct ports in maya, you can use the following code.
Note: If your using a extension version higher than 0.9, then MEL and Python code use the same port in maya.
In the Maya script editor MEL Tab.
commandPort -name "localhost:7001" -sourceType "mel" -echoOutput;
Prefixes | Description |
---|---|
if | Code snippet for an if statement |
if/else | Code snippet for an if statement with else |
elseif | Code snippet for an else if |
else | Code snippet for an else |
do/while | Code snippet for a do while loop |
switch/case | Code snippet for a switch case |
proc | Code snippet for a procedure |
proc(global) | Code snippet for a global procedure |
for/in | Code snippet for a for loop |
for | Code snippet for a for loop with counter |
while | Code snippet for a for while loop |
Autodesk Maya tested using Maya 2016 Windows and Linux but should work with all versions.
See CHANGELOG.md
See Recent Releases
Enjoy!