1
$\begingroup$

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.

$\endgroup$
6
  • $\begingroup$ related: blender.stackexchange.com/questions/3043/… $\endgroup$ Apr 8, 2017 at 14:12
  • $\begingroup$ related: blender.stackexchange.com/questions/3219/… $\endgroup$ Apr 8, 2017 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$ Apr 8, 2017 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, 2017 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$ Apr 9, 2017 at 15:20

0

You must log in to answer this question.

Browse other questions tagged .