Quantcast
Channel: mel wiki
Viewing all articles
Browse latest Browse all 610

API : How to compile a plugin

$
0
0
All of the api (OpenMaya) work I do is via the Python bindings. And plugins authored that way don't need to be 'compiled', since they're considered 'scripted plugins'. Sometimes however I'll run into legacy plugins that need recompiled to the latest version of Maya, and Maya itself comes with many examples of c++ authored plugins that do need compiled (living here: C:\Program Files\Autodesk\Maya20XX\devkit\plug-ins).

Talking with co-workers smarter than I on the subject, here are the steps we went through to compile a plugin:
  1. Install Visual Studio.
    1. The version of Visual Studio is very important, based on which Maya you are going to compile for. Check out this subject to understand which version you need installed: Maya compiler versions
    2. When you first launch Visual Studio, configure it to 'C++'.
  2. Launch Visual Studio and: File -> Open C:\path\to\my\plugin\myPlugin.sln.
    1. .sln are Visual Studio 'solution' files.
  3. Select the 'Release' build configuration, from the drop-down in the 'standard toolbar'.
  4. Press F7 to build the plug-in (Build -> Build Solution): Watch the magic happen in the Output window.
  5. The newly compiled plugin is output to C:\path\to\my\plugin\myPlugin.mll
And that's really all there is to it.

Questions:

OR
Here's a video tutorial by Chad Vernon on how to do it using CMake, for Mac & Linux support.
http://www.chadvernon.com/blog/maya/compiling-maya-plug-ins-with-cmake/

Viewing all articles
Browse latest Browse all 610

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>