View Full Version : Retrieving MEL results within the API

02 February 2004, 07:37 PM

I am searching for a way to "grab" results from a MEL execute command. For instance:

// I have to use xform let's say

// I have a vertex selected

MGlobal::executeCommand("xform -q -ws -bb");

Now how do I capture the results?

Would I use:

static MStatus executeCommand ( const MString & command, MCommandResult & result, bool displayEnabled = false, bool undoEnabled = false )

thanks for your time!


02 February 2004, 11:15 PM
Yes. Look in the "result" variable for the result.

-- Mark

CGTalk Moderation
01 January 2006, 11:00 AM
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.