Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Maya 2016 + Visual Studio 2015
MayaPluginWizard never works. Here's setting up a project from scratch.
File > New Project > Visual C++ > Win32 > Win 32 Project > Name it.
Win32 Application Wizard > Next > DLL
Additional Options > Empty Project checked > Finish
Main Window
Right-click Source Files > Create an empty .cpp file
Project > Properties
Change Configuration to "All Configurations" Platform to "x64" - should be default
Linker > General > remove $(TargetExt) and replace it with .mll
Linker > General > Additional Library Directories
C:\Program Files\Autodesk\Maya2016\lib
Linker > Input > Additional Dependencies
Foundation.lib;OpenMaya.lib;OpenMayaUI.lib;OpenMayaAnim.lib;
OpenMayaFX.lib;OpenMayaRender.lib;Image.lib;opengl32.lib;glu32.lib;
C/C++ > General > Additional Include Directories
(must have downloaded devkit prior to doing this)
C:\Program Files\Autodesk\Maya2016\include
C/C++ > Preprocessor > Preprocessor Definitions
WIN32;NDEBUG;_WINDOWS;NT_PLUGIN;REQUIRE_IOSTREAM
Linker > Command Line > Additional Options
/export:initializePlugin /export:uninitializePlugin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment