Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 1/3
You are here: Forum Home / Autodesk® Maya® / SDK / Force Refresh Script Editor?
  RSS 2.0 ATOM  

Force Refresh Script Editor?
Rate this thread
 
4082
 
Permlink of this thread   Subscribe to this thread
avatar
  • Total Posts: 30
  • Joined: 03 December 2007 09:18 PM

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



Replies: 0
avatar

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!



Replies: 0
avatar
  • syntetik
  • Posted: 09 February 2008 09:06 PM

what about MGlobal::executeCommand("print ...")
that might refresh in Script Editor?



Replies: 0




   
  Settings Choose Theme color: