Add the easy_atlas folder to: C:\Users\USERNAME\Documents\maya\2015-x64\scripts
- Use your USERNAME
- Choose your maya version
Run the following code from the script editor:
import easy_atlas
easy_atlas.launch()
Note: Example project uses Maya 2020
To target the development script directly to your Maya installation:
- Find your "maya.env" file in your prefs folder
- PC: C:\Users\USERNAME\My Documents\Maya<version>\
- Mac: /Users/USERNAME/Library/Preferences/Autodesk/Maya//
- Open it in a text editor and add this line,
- PC:
PYTHONPATH = C:\Users\USERNAME\Documents\maya\projects\EasyAtlasTestMayaProject\scripts
- Mac:
PYTHONPATH = /Users/USERNAME/Documents/maya/projects/EasyAtlasTestMayaProject\scripts
- PC:
- Use your USERNAME and the path specific to this project.
Several options to copy the script into the included maya project
- Manually. Simply copy what's in
/easy_atlas
toEasyAtlasTestMayaProject/scripts/easy_atlas
- On Mac, double click the
macRunBuild.command
. It will automatically do what's in #1. - On PC, double click the
pcRunBuild.command
. It will automatically do what's in #1. - If you have
node
installed, runnode index.js
. - If you have
npm
installed, runnpm run-script build
- If you have
yarn
installed, runyarn build
After the Target and Build steps above, open Maya and "Set Project" to your EasyAtlasTestMayaProject directory. Run the following code from the script editor:
import easy_atlas
easy_atlas.launch()
After each change to the /easy_atlas script files, build again to copy the files into the included maya project. Then close EasyAtlas in Maya. Relaunch EasyAtlas using the commands above.
Follow this extremely helpful guide to debugging the .jsx script in Photoshop and VS_Code.