Sennah
06-13-2009, 08:46 PM
Hi! I'm new to the Maya API and I need to write my own exporter to export 3d files to my game. I know the official plugin wizard that comes with maya 2008 is for VS8 and not VS9 (VS2008) so I found one for VS9 that some guy made and I used it and it worked.
I've read multiple tutorials on how to write an exporter but I encountered loads of problems when I included MLibrary.h which is required to use MLibrary class (?). My first problem was that it couldn't find the libMDtApi.lib and I couldn't find any help regarding it but I did find a file called libMDtApid.lib which I copied and renamed to the appropriate place. Then it said it couldn't find mfc80.lib which is used by VS8 so I opened libMDtApi.lib (libMDtApid.lib) and changed it to mfc90.lib and I could compile and link without any errors.
Then I couldn't load the plugin in maya, no error showed, it just didn't come up on the list of plugins in the plugin manager and I tried several times. Then I made the plugin do nothing and removed the #include <maya/MLibrary.h> and it could be loaded.
My questions are:
Is it possible to use VS9 and Maya 2008 with the MLibrary class/header and everything?
If so, how do I set it up? Am I using outdated files?
Thanks in advance, I would appreciate any help A LOT!
I've read multiple tutorials on how to write an exporter but I encountered loads of problems when I included MLibrary.h which is required to use MLibrary class (?). My first problem was that it couldn't find the libMDtApi.lib and I couldn't find any help regarding it but I did find a file called libMDtApid.lib which I copied and renamed to the appropriate place. Then it said it couldn't find mfc80.lib which is used by VS8 so I opened libMDtApi.lib (libMDtApid.lib) and changed it to mfc90.lib and I could compile and link without any errors.
Then I couldn't load the plugin in maya, no error showed, it just didn't come up on the list of plugins in the plugin manager and I tried several times. Then I made the plugin do nothing and removed the #include <maya/MLibrary.h> and it could be loaded.
My questions are:
Is it possible to use VS9 and Maya 2008 with the MLibrary class/header and everything?
If so, how do I set it up? Am I using outdated files?
Thanks in advance, I would appreciate any help A LOT!
