0
$\begingroup$

Does Blender 2.8 have default Progress Bar in GUI (not in console) to show exporting progress for my exporter plugin (something similar to DrawProgressBar from Blender.Window in Blender 2.49) ? Thanks

$\endgroup$

bumped to the homepage by Community 2 hours ago

This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

  • 1
    $\begingroup$ What have you tried so far? This seems like a "How do I" with very little research $\endgroup$ – Merlin Oct 17 at 8:54
  • $\begingroup$ I've tried 'context.window_manager' and ProgressReport, but both are just for console output, so no GUI progress bar during export. $\endgroup$ – Karen Akhumyan Oct 18 at 13:28
0
$\begingroup$

This is all I've found so far:

import bpy

win = bpy.context.window_manager

win.progress_begin(0, 100)

for i in range(1,100) :
    win.progress_update(i)

win.progress_end()

Update

According to the source code this was intended to be a real progress bar, but that was back in 2013, unfirtunately it seems to have fallen into obscurity.

$\endgroup$
  • $\begingroup$ I've tried this too, but it doesn't show any GUI progress bar. The 3dsmax and Maya have built-in GUI progress bar, I believe the Blender also had one before version 2.5. $\endgroup$ – Karen Akhumyan Oct 18 at 13:48
  • $\begingroup$ It will show the little black square with the progress counter. $\endgroup$ – Robert Gützkow Oct 18 at 13:50
  • $\begingroup$ Yeah, with a number and disappears when you move the cursor :). Useless. $\endgroup$ – Karen Akhumyan Oct 18 at 13:55
  • $\begingroup$ According to the blender source this was intended to be more that a "useless" cursor. See source commit developer.blender.org/… $\endgroup$ – Merlin Oct 18 at 18:17
  • $\begingroup$ Thanks for details. According to 'progress_update' body it only updates the cursor :), 115: WM_cursor_time(wm->winactive, val); $\endgroup$ – Karen Akhumyan Oct 21 at 7:58

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.