Setting up the Maya devkit on macOS

Important:

Maya sets the SSL_CERT_FILE environment variable to point to the cert.pem file within its embedded Python Framework if SSL_CERT_FILE is unset.

If you need SSL_CERT_FILE to remain unset because you are using other means of controlling Python's certificate usage, set MAYA_DO_NOT_SET_SSL_CERT_FILE before launching Maya:

export MAYA_DO_NOT_SET_SSL_CERT_FILE=1

The Maya devkit is available from The Maya Developer Center.

Scroll to the bottom of the Maya Developer Center page to find the devkit packages. Click on the appropriate link to download the devkit.

  1. Unarchive the devkit dmg package. This will create a mounted disk image name devkitBase.

  2. Create a devkitBase directory on your machine. It can be located anywhere except within the Maya insallation directory.

  3. Copy the contents of the devkitBase disk image to your devkitbase directory.

  4. Create a directory named plug-ins under your devkitBase directory. This is where you will store your own plug-ins and scripts.

  5. Create the plug-ins, scripts, and icons directories under your devkitBase/plug-ins/ directory.

  6. Edit the $HOME/Library/Preferences/Autodesk/maya/<version_number>/Maya.env file to define path variables pointing to your plug-ins, scripts, and icons directories. Use the Maya.env file that corresponds to the version of Maya you are developing for.

     MAYA_PLUG_IN_PATH=$HOME/devkitBase/plug-ins/plug-ins/
     MAYA_SCRIPT_PATH=$HOME/devkitBase/plug-ins/scripts/
     XBMLANGPATH=$HOME/devkitBase/plug-ins/icons/
    

    Maya will use these paths to automatically discover the plug-ins and scripts in these directories. If these paths are not set, you will need to open Maya's Plug-ins Manager and manually browse to the location of the plug-ins and scripts to load them.

    Note:

    The $HOME/Library/Preferences/Autodesk/maya/<version_number>/ directory is created when Maya is launched for the first time. It may not be visible from Finder, but you can navigate to it from the terminal window.

  7. Set the MAYA_LOCATION, DYLD_LIBRARY_PATH, DYLD_FRAMEWORK_PATH, and DEVKIT_LOCATION environment variables.

    Important:

    If you have more than one version of Maya installed, only set these variables in the terminal window where you will be building your plug-ins and applications. Setting them in your .bash_profiles file can result in a conflict with other versions of Maya that are installed on your system.

    Set MAYA_LOCATION to point to the version of Maya you are developing for, and set DEVKIT_LOCATION to point to the location of your devkitBase directory.

    Open a terminal window and set the following environment variables:

     export MAYA_LOCATION=/Applications/Autodesk/<maya_version>/Maya.app/Contents
     export DYLD_LIBRARY_PATH=$MAYA_LOCATION/MacOS
     export DYLD_FRAMEWORK_PATH=$MAYA_LOCATION/Frameworks
     export DEVKIT_LOCATION=/Users/<your_username>/devkitBase