Create a gist now

Instantly share code, notes, and snippets.

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
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
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