The result of a print("message")
command called inside an operator appears immediately in the System Console.
However the result of self.report({'INFO'}, "message")
called inside an operator's method, appears in the INFO window only after the operator finished its job. The same applies to bpy.ops.console.scrollback_append(text="message")
used to print something in the Python Console
Is there a trick to force messages produced by self.report({'INFO'}, "message")
and/or bpy.ops.console.scrollback_append(text="message")
also to appear immediately?
bpy.ops.wm.redraw_timer(type='DRAW_WIN_SWAP', iterations=1)
. It partially helped forbpy.ops.console.scrollback_append(text="message")
. The first messages appear immediately. But the rest of the messages appears after the operator finished its job. $\endgroup$