Firstly, get some proper sleep.
And secondly i am going to focus more and more on research and development this year.
I have some raw concepts in mind that i want to work on.
But first, get hands on with the Maya API.
Yesterday i setup MS visual studio for Maya plugin development.
It was pretty straight forward(ofcors, you realize this after doing it) but it took me a couple of hours to figure things out.
Here are some notes just for my own memory and anybody seeking quick instructions about how to setup MS visual studio for Maya.
1) If you want to develop plugins for Maya 2010,2011 or 2012. You’d need MS visual studio 2008 SP1(V 9.0). (I set it up for Maya 2012)
2) If you have development kit installed with your Maya installation. Autodesk have supplied you with a Maya plugin project preset for MS visual studio. If you open visual studio and choose that preset. A new wizard will open and ask you some necessary questions to efficiently set all the libraries and links to the API. For example, For what maya version, you want to compile the plugin?. What Maya libraries would to want to import?.
So for MS visual studio, to be able to load that preset, you’d want to copy that ms visual studio project preset from your Maya installation to your visual studio installation directory.
Its a zip file named “MayaPluginWizard2.0” . Go to your Maya installation directory. There is a folder named “devkit”. In that folder there is another folder named “pluginwizard”.
So relative path to it would be something like – MayaInstallationDirectory\devkit\pluginwizard\
Absolute path in my case for Maya 2012 64bit was – C:\Program Files\Autodesk\Maya2012\devkit\pluginwizard
3) Unzip the file. The zip extractor would give you a new folder named “MayaPluginWizard2.0”. Go into that folder and you’d find another folder named “MayaPluginWizard”.
Copy this folder to
Relative path : Microsoft Visual Studio 9.0 installation directory\VC\VCWizards
Absolute path : C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\VCWizards
Go into that folder And you’d find another folder named “MayaPluginWizard” , along with 3 more files there. Following are the names of those 3 files.
4) Copy the above mentioned 3 files to “C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcprojects”.
So thats it.
Now hopefully if everything went fine. When you start visual studio and start a new project. You’d find a “Maya Plugin Wizard” icon under “Visual C++”.
learn about Maya API. write some code. Compile it and it’ll give you a .mll file. Copy that file into your maya plugin folder and load the plugin(through maya plugin manager) in maya to test it after restarting maya(or you can browse, load, unload the plugin from the plugin manager. Ofcors this one is easy!).
And there you go.
So now, i am going to re-write my tree designer tool in C++ as a proper plugin. And hopefully get some speed advantage in rendering and designing.
Its going to be fun. A lot of math,physics and computers are going on these days. And i am learning a LOT.
So happy coding everyone and thanks for visiting.
“Complete Maya Programming” by david A. Gould(Vol 1 and 2) are amazing resources to learn Maya API.(Just in case, i thought)
Note: Always run MS Visual studio by right clicking and “run as administrator”. Otherwise maya plugin wizard will give you an error saying “project upgrade failed”.