2
$\begingroup$

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?

$\endgroup$
2

1 Answer 1

1
$\begingroup$

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
$\endgroup$
2
  • 2
    $\begingroup$ 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. $\endgroup$ Aug 26, 2015 at 15:46
  • $\begingroup$ @TARDISMaker I have already linked to the force redraw solution ( in the comments ) and this answer is about the report() $\endgroup$
    – Chebhou
    Aug 26, 2015 at 19:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .