2

I have a script which is working. At the end of the script, rendering is started. This is supposed to work as a template for people possibly unfamiliar with a freezing screen (blender is loading lots of data into cache from images used in the compositor). For that reason i want an "Info" in the top bar saying something like "This might take a while. Now rendering...". So i would have this in my operator

  • draw message
  • redraw UI (to show message)
  • Run the rest of the script

Is this possible?

Ray Mairlot
  • 29,192
  • 11
  • 103
  • 125
James
  • 21
  • 1
  • see this Q/A http://blender.stackexchange.com/questions/28673/update-viewport-while-running-script – Chebhou May 28 '15 at 14:11
  • 1
    also related: http://blender.stackexchange.com/questions/3219/how-to-show-to-the-user-a-progression-in-a-script – pink vertex May 29 '15 at 13:58

1 Answers1

1

use report() in your operator to display reports on the top bar

self.report({'INFO'},"This ma take some time")
# rest of the code here
Chebhou
  • 19,533
  • 51
  • 98
  • 2
    Yeah, but I'm pretty sure that the UI isn't redrawn until after the python is done executing. I could be wrong about this, but I'm pretty sure that's the case. – TARDIS Maker Aug 26 '15 at 15:46
  • @TARDISMaker I have already linked to the force redraw solution ( in the comments ) and this answer is about the report() – Chebhou Aug 26 '15 at 19:14