The Maya Development Kit product contains a number of example plug-ins located in C:\Program Files\Autodesk\maya2014\devkit\plug-ins. The development kit also contains several Maya API applications, located in C:\Program Files\Autodesk\maya2014\devkit\applications.
Before you can use the example plug-ins, you need to build them. You can choose to build the plug-ins in the folder to which they were installed or you can copy the plug-ins to your own working folder.
Each plug-in resides in its own sub-folder. To build an individual plug-in, navigate to its sub-folder and double-click on the corresponding solution file (the .sln file) to load it into Microsoft Visual Studio 2010 SP1. When the solution has finished loading, select Build Solution from the Build menu. Visual Studio will build your plug-in and place the resulting .mll file in a subdirectory representing the configuration you built the plug-in for. For example, to build the circleNode plug-in you would navigate to the C:\Program Files\Autodesk\maya2014\devkit\plug-ins\circleNode folder, double-click on the circleNode.sln file, and then build the solution. Assuming that you built for the Debug|x64 configuration, the resulting plug-in will end up in C:\Program Files\Autodesk\maya2014\devkit\plug-ins\circleNode\x64\Debug\circleNode.mll. If you had built the for the Release|Win32 configuration, the plug-in would end up in C:\Program Files\Autodesk\maya2014\devkit\plug-ins\circleNode\Win32\Release\circleNode.mll.
To build all of the example plug-ins, navigate to the Development Kit's plug-ins folder (C:\Program Files\Autodesk\maya2014\devkit\plug-ins) and double-click on the Plugins.sln file to load it into Visual Studio. When the solution has finished loading, select Build Solution from the Build menu. Visual Studio should then rebuild all of the example plug-ins.
To load your plug-in into Maya, open the Plug-in Manager window and browse to the folder containing your plug-in. If you want the Plug-in Manager to automatically find your directory, you can build and put the plug-in into a directory defined by the MAYA_PLUG_IN_PATH variable.
You can choose to build the applications in the folder to which they were installed or you can copy the applications to your own working folder.
To build an individual application, double-click on its solution file (e.g. readAndWrite.sln) to load it into Microsoft Visual Studio, then select Build Solution from the Build menu. Visual Studio will build your application and place the resulting executable file in the C:\Program Files\Autodesk\Maya2014\devkit\applications folder.
To build all of the example Maya API applications, use the APIApplications.sln solution file.
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:
set MAYA_LOCATION=c:\Program Files\Autodesk\Maya2014 set Path=c:\Program Files\Autodesk\Maya2014\bin;%Path%
Note that %Path% is included so that existing commands are not lost to the shell.
The instructions in the previous section enable you to build and use the example plug-ins included with Maya, but you still need information on creating your own plug-ins. On Windows, the process for creating the source code files is the same as it is on Linux, but in addition you must create Microsoft "Project" files so that Developer Studio knows how to build the plug-in. You can do this using the plug-in wizard, described in the next section.