Setting up an Autorigger for Metahumans
Here’s a quick project I threw together to learn how writing plugins for Maya works:
I wrote this plugin using a mix of C++ and MEL. When my plugin is initialized with the initializePlugin fn (see here for more info), it loads my custom MEL scripts using the source MEL command. Additionally, it calls registerUI to and passes in the creation and deletion MEL scripts.
The IK rig scripts themselves are a modified version of the ones supplied in this video from yt channel Maya Expert:
I was able to clean up the scripts and separate them out into individual commands that could be tied to my UI buttons.
Overall, I found the process of plugin development for maya to be fairly smooth. The documentation is not incrededible, but is adequate for getting the job done. By far the most difficult part was building the UI using MEL. The syntax is pretty archaic and it takes a surprising amount of code to even get a simple panel with buttons on it. If I do any more Maya plugin development in the future, I may look into the python API instead for the UI.