Force Refresh Script Editor?

Force Refresh Script Editor?

Anonymous
Not applicable
652 Views
2 Replies
Message 1 of 3

Force Refresh Script Editor?

Anonymous
Not applicable
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
0 Likes
653 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
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!
0 Likes
Message 3 of 3

Anonymous
Not applicable
what about MGlobal::executeCommand("print ...")
that might refresh in Script Editor?
0 Likes