PDA

View Full Version : Retrieving MEL results within the API


ktpr
02-14-2004, 06:37 PM
Hi,

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!

cheers
ktpr

mark_wilkins
02-17-2004, 10:15 PM
Yes. Look in the "result" variable for the result.

-- Mark

CGTalk Moderation
01-17-2006, 10: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.