I imbeded a declaration of a mel proc as a literal char string inside a Maya API command and executed it using MGlobal::executeCommand(MString, false, false). It works fine without having to write the tedious DAG connections using the API.
What troubles me is that when I unload the command plugin, the Mel procedure is still available. So the command is deregistered in the uninitializePlugin() member function. The Mel proc isn't. Is this a memory leak?
Chris Gibbs
At Your Service