Maya API For C++: How To Debug On Mac
There is no output window in Mac’s Maya so I can’t print out text by std::out
. The only way I know is to use Global::displayInfo
. However, Global::displayInfo
only accepts MString
. I haven’t digged into what MString
is yet but just provide some examples here. Hope you can get the basic idea:)
1 | Global::displayInfo("hello"); // Works |
In this way, we can also print out numeric types!
1 | flaot value = 100.0f; |