View Full Version : Call MEL scripts through maya API

05 May 2009, 02:40 PM
I wanting to know if it would be possible to load and execute MEL scripts through the Maya api? I would think there would be a way to do it but I have not found anything on this yet.

05 May 2009, 04:58 PM
you have to look for the class MGlobal and the function executeCommand

Robert Bateman
05 May 2009, 04:58 PM
MGlobal::executeCommand() or MDgModifier::commandToExecute() if you want to be able to undo it (or are calling the script from an MPxCommand)

CGTalk Moderation
05 May 2009, 04:58 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.