I wonder if it is possible to have a progress bar in blender's GUI not in the console to show the progress of my script. For example in my addon I have 3 buttons, 1 of them loads an obj file and do some processing on it, second one does some processing and animation and the third one reads a file. So I want when I press on any of the buttons somehow I will be able to see the % progress of the button script through blender itself not through the console.

  • $\begingroup$ related: blender.stackexchange.com/questions/3043/… $\endgroup$ – Jaroslav Jerryno Novotny Apr 8 '17 at 14:12
  • $\begingroup$ related: blender.stackexchange.com/questions/3219/… $\endgroup$ – Jaroslav Jerryno Novotny Apr 8 '17 at 14:12
  • $\begingroup$ I think your best bet is either use the cursor or make your own progress bar with opengl and bgl module. $\endgroup$ – Jaroslav Jerryno Novotny Apr 8 '17 at 14:15
  • $\begingroup$ @Jerryno thank you. I followed this: blenderartists.org/forum/… and it works, but how I can incorporate it with my button operator? like make it works when my button is pressed and then update it's progress to looks realistic and finishes when my button's functions finishes? $\endgroup$ – Tak Apr 9 '17 at 0:02
  • $\begingroup$ You can draw from a modal timer operator, then self-terminate that operator when the job is done, or you can use threading and do the job in separate thread updating some property and draw from (for example) app.handler according to the property. $\endgroup$ – Jaroslav Jerryno Novotny Apr 9 '17 at 15:20

Your Answer

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

Browse other questions tagged or ask your own question.