Running standalone API applications

For information regarding building API applications, see:

Running API applications on Windows

If, during installation, you added the Maya executable directory to your path, you can run the application immediately. If you did not, you will need to copy your application to the Maya executable directory to run it.

Several environment variables must be set in order to run a standalone Maya API application. These are:

For example:

set MAYA_LOCATION=c:\Program Files\Autodesk\Maya2016
set Path=c:\Program Files\Autodesk\Maya2016\bin;%Path%

Note that %Path% is included so that existing commands are not lost to the shell.

Running API applications on Mac OS X

On Mac OS X, you must set the DYLD_LIBRARY_PATH environment variable before you try to execute one of these applications so the runtime linker can find the Maya shared libraries.

The recommended procedure for preparing to build and run stand-alone applications is to set the following environment variables:

setenv MAYA_LOCATION /Applications/Autodesk/maya2016/Maya.app/Contents
setenv DYLD_LIBRARY_PATH $MAYA_LOCATION/MacOS
setenv DYLD_FRAMEWORK_PATH $MAYA_LOCATION/Frameworks