nsimagine
10-02-2009, 12:44 AM
For learning API purposes, I am trying to convert the
closestPointCmd from the maya devkit from a command into a node.
However, I can get the intersector to work. Inside Maya I get the error message
Failed to create the intersector. Now for debugging purposes - and this might probably be
handy later on - to my actual question:
How can I print a MObject, or an MMatrix?
Something like :
MObject inMesh;
MGlobal::displayError( inMesh );
does not work for instance. How would I "convert" the Object into a String so that
I can feed it into the displayError or something that I can echo out?
Any ideas?
closestPointCmd from the maya devkit from a command into a node.
However, I can get the intersector to work. Inside Maya I get the error message
Failed to create the intersector. Now for debugging purposes - and this might probably be
handy later on - to my actual question:
How can I print a MObject, or an MMatrix?
Something like :
MObject inMesh;
MGlobal::displayError( inMesh );
does not work for instance. How would I "convert" the Object into a String so that
I can feed it into the displayError or something that I can echo out?
Any ideas?
