Building Plug-ins

From The Foundry MODO SDK wiki
Revision as of 02:16, 3 November 2012 by Philstopford (Talk | contribs) (How do I create a new Visual Studio project for a modo plugin?)

Jump to: navigation, search

The easiest way to see how to setup the project files is to start with the sample plugins. There are both Xcode and Visual Studio projects included.

How do I create a new XCode project for a modo plugin?

Firstly, you don't want to be creating a bundle, you want to create a C/C++ Library, set the type to Dynamic.

Then add a new target to the project, of the same type, but this one is a static library. Add the .cpp files in the SDK common directory to this target and set the header search path to look in the SDK header directory.

Then select your plugin target and go to build phases, add the SDK target as a target dependency. Also add the SDK target under Link Binary with libraries.

That should be everything you need to do.

How do I create a new Visual Studio project for a modo plugin?

These instructions are based on Visual Studio Express 2010. Much like the XCode instructions above, the basic idea is to create a static library project for the common.lib and set that as a dependency for your main plugin project.

(to be continued)