Metasequoia pmx plugin
Right click the project in the Solution Explorer window and select Add>Existing Item and browse to MQInit.cpp which is found in the root folder of the SDK and click “Add”.
![metasequoia pmx plugin metasequoia pmx plugin](https://www.metaseq.net/en/image/v470_animation.gif)
The next step is to add MQInit.cpp and a blank myplugin.cpp to our plugin project. The Lathe plugin uses functions to implement the plugin and since I believe this way to be more straightforward I will use Lathe.cpp as my reference. Which means the Wired plugin is declared as a class which is derived from the base class MQObjectPlugin. The Wired plugin uses classes which you can see by the fact that MQBAsePlugin.cpp is included in the Wired project’s source files.Īlso examining the Wired.cpp file you see the following line,Ĭlass WiredPlugin : public MQObjectPlugin The first way uses functions and the second way uses classes. An object plugin appears in the Object menu in Metasequoia. I want my plugin to act on the current object so will study either the Lathe or Wired *.cpp file for reference. I will instead create a blank *.cpp and only use the sample *.cpp as a reference. The instructions suggest to select one of the sample plugins that match the category of plugin you wish to create and copy the *.cpp file of that sample plugin to your plugins project folder and rename it.
#METASEQUOIA PMX PLUGIN 64 BIT#
Set up the configurations to build a 64 bit version if you wish by following the instructions. Metasequoia will not load two plugins of the same category if they have the same names. You should give your project a unique name so the *.dll has a unique name. We configured the solution in the previous post so can jump to step 3 of the instructions and add a new project to the solution. Open “mqsdk_en.html” which is found in the SDK root folder and click “Using Visual Studio” to open the instructions for writing a plugin for Metasequoia. I will write a plugin that does nothing much to show the basic process.