Can someone help me use the Maya API to format messages to the script editor?
MString msg;
std::cout << "Mesh: " << mesh.id << "\n"; //prints to stdout / Maya ourpur window
msg.format("Mesh: ", mesh.id.c_str()); // based on API examples.
MGlobal::displayInfo(msg); // prints "// //" in script editor
I can get stdout to the output window, I just want the info to be in the script editor
I want to format stuff like printf( "data result = %s", data)