Setting up Maya
- This page gives instructions for setting up Autodesk Maya. For Autodesk 3ds Max, see Setting up 3ds Max.
- We recommend following the video tutorials first: Art Video Tutorials.
- The current version of the art pipeline in the cloud supports the previous 3 new tutorials of Maya.
- Please make sure you've run the Art Depot Installer from your account page.
- Then download the HeroEngine Art Pipeline and place it in C:\HeroEngine\ArtDepot
- You will now have a directory structure that looks like C:\HeroEngine\ArtDepot\HeroEngineArtPipeline
Navigate to your Maya Environment file:
C:\Documents and Settings\<username>\My Documents\maya\20xx
Vista / Win7 Users:
There should be a maya.env file in this directory. Open it in a text editor.
Alternatively, you can also use the
getenv MAYA_APP_DIR; mel command in the mel script editor to see where your env file is. If you have multiple versions of Maya, go into the version of Maya you are setting this up for.
Copy the lines of code below and paste them into the Maya.env file.
MAYA_SCRIPT_PATH = C:\HeroEngine\ArtDepot\HeroEngineArtPipeline\MELScripts\Maya2012.0 PYTHONPATH = C:\HeroEngine\ArtDepot\HeroEngineArtPipeline\MELScripts\Maya2012.0 MAYA_PLUG_IN_PATH = C:\HeroEngine\ArtDepot\HeroEngineArtPipeline\Exporter\Maya2012.0 XBMLANGPATH = C:\HeroEngine\ArtDepot\HeroEngineArtPipeline\MELScripts\HE_Tools_Icons HeroEngine_Root = C:\HeroEngine\ArtDepot\HeroEngineArtPipeline
- CHANGE the year in each line to your version of Maya: 2013, 2014, etc
- For Running 64-bit versions of Maya, use this line for the MAYA_PLUG_IN_PATH:
MAYA_PLUG_IN_PATH = C:\HeroEngine\ArtDepot\HeroEngineArtPipeline\Exporter\Maya2012.0_64bit
Note: If you need multiple paths to run your own custom scripts from different locations, then add the paths to the end with a ; between the path names without any spaces.
In the example code, "C:\HeroEngine\ArtDepot\..." was used, however, if you didn't use the art depot installer, or if your team is using a networked or shared art depot, your root path can be different. Network paths are acceptable here as well for one central location of the tools.
Maya loads scripts at startup from a userSetup.mel file. Check to see if a userSetup.mel file is already in use.
Maya will only run the first
userSetup.mel that it finds, so if you already have a userSetup.mel file that you normally use, you'll add the code from either the
userSetup.x86 or the
userSetup.x64 file (depending on what bit version of Windows you are using)
to your preexisting
The 32 bit file is C:\HeroEngine\ArtDepot\HeroEngineArtPipeline\MELScripts\Maya20xx.0\userSetup.x86
- (if you don't have a userSetup.mel file already, then rename userSetup.x86 to userSetup.mel)
The 64 bit file is C:\HeroEngine\ArtDepot\HeroEngineArtPipeline\MELScripts\Maya20xx.0\userSetup.x64
- (if you don't have a userSetup.mel file already, then rename userSetup.x64 to userSetup.mel)
The last thing is to Start Maya and then load the HeroTools shelf.
Navigate to: C:\HeroEngine\ArtDepot\HeroEngineArtPipeline\MELScripts\Maya20xx.0\ and load shelf_HeroTools.mel
- HeroTools Maya Shelf
Maya Preferences Settings
Maya defaults to Film (24 fps) for animation which is not what real time applications, such as Hero Engine, uses. To change this setting, go to Window > Settings/Preferences > Preferences
In the Preferences window go to Settings in the Categories column on the left and confirm and/or change the following settings:
World Coordinate System
- Up axis: Y
- Linear: centimeter
- Angular: degrees
- Time: NTSC (30 fps)
Note: Other Linear working units can be used, however Hero Tools such as the SRB Tools and Asset Tools are written for centimeter.