PDA

View Full Version : Call MEL scripts through maya API


Mumm
05-20-2009, 03: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.

dealer2couleurs
05-20-2009, 05:58 PM
you have to look for the class MGlobal and the function executeCommand

Robert Bateman
05-20-2009, 05: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-20-2009, 05: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.