Jump to content
  • Advertisement
Sign in to follow this  

Maya MEL + API

This topic is 2282 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I've started to create a simple interface in MEL with some buttons that I will use to manage a simple scene to be ready for exporting. The exporter will be in C++ as a loaded plugin. I was wondering how is the best way for the MEL script to comunicate with the plugin.
The plugin is in this format:
DeclareSimpleCommand( export , "firm", "0.0");

MStatus hello::doIt( const MArgList& args )

//the code

return MS::kSuccess;

So. all the data that the MEL interface is saving how will the plugin will acces it ? For example I set only 3 objects in the scene to be exported and I'll do that by filling a vector in a MEL script that also uses an interface. When I hit export and the plugin is initializated I only can execute a command (expor) and an argument list. Should I use the argument list ?

Also, how can the plugin keed track of events happening in the scene without execute everytime the execute command of the plugin? For example if I rotate an object the plugin should be notified and execute another command (just a stupid example).

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!