Atom is a neat text-editor created by Github. Atom can be extended with plugins and somebody already created a useful “atom-maya” plugin that enables you to send your current code to Maya.
Simply download the installation files and follow the Installation instructions. During the installation of Python enable “Add Python.exe to Path”
Simply download the installation files and follow the Installation instructions.
- Then open Atom
- Open the settings panel File > Settings (Ctrl+Comma)
- Go to “Install Packages”, search and install “atom-maya”.
To be able to send Code from Atom to Maya you need to open a command Port. We are going to set up Maya that this Command Port will be opened each time Maya starts. When Maya starts it looks for a file called “userSetup.py” in the folder “_/Users/
If the “userSetup.py” file does not exist - simply create a new file in Atom and save it as “userSetup.py” in the folder.
Then add following lines of code:
import maya.cmds as cmds cmds.commandPort(name=”:7005”, sourceType=”python”)
Now that everything is set up, let’s test if everything works.
Open Maya and Atom.
In Atom create a new file “test.py” add following code:
import maya.cmds as cmds cmds.polyCube()
Press “Ctrl+Alt+R” to send the code to Maya. If everything went ok, a polyCube was created.
“python” is not recognized as an internal or external command. : Run the python installer again and doublecheck if you set “add python.exe to path” (Or just add it manually to the windows system environment. Script execution error. The plugin does not support python 3: you can fix that by downloading python 2.