|
I have a c++ command for maya that takes a loooong time to run. I put outputs about every 10% through the main loop that say “X% complete...” , but the problem is that maya is kind of “frozen” such that my MGlobal::displayInfo() commands are not displayed at all until the completion of the command. When I look at the script editor history, everything is there as it should be.
Is there a way to say “force this to update/refresh”?
Thanks,
David
|
|
|
|
Alternate solution:
Use MProgressWindow - its maya’s version of a progress bar. Much better than just trying to update the script editor window!
I found that you MUST use the reserve() function. I thought it was kind of an optional thing, but if you don’t reserve the ProgressWindow then it doesn’t display at all!
|
|
|
|
what about MGlobal::executeCommand("print ...")
that might refresh in Script Editor?
|
|
|