Sunday, December 25, 2011

Maya Plugins: VS2008 Build environment


Windows 32 dll Project
Configuration type
Additional Include


Additional dependencies
Foundation.lib OpenMaya.lib OpenMayaFx.lib OpenMayaUi.lib Image.lib OpenMayaAnim.lib OpenMayaRender.lib

this is whats odd, I have to put this export command in the linker cmd line so maya loads this plugin

Code for registering a plugin:

#define _BOOL
#include /iostream/
#include /maya/MFnPlugin.h/

MStatus initializePlugin(MObject object)
return MS::kSuccess;

MStatus uninitializePlugin(MObject object)
return MS::kFailure;