Search code examples
c++pythonmayamel

Maya MFnPlugin::registerUI to call Python instead of MEL scripts


I have a C++ Maya plugin. When loaded, it automatically calls MEL procedures to create the GUI:

  status = plugin.registerUI("LoadGUI", "UnloadGUI");CHECK_STATUS(status);

However, registerUI seems to be available for MEL procedures only.

How could I do similar things for Python?


Solution

  • Have the mel command call your python command.