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?


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
| improve this answer | |
  • 1
    $\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$ – TARDIS Maker Aug 26 '15 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 '15 at 19:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.