2
$\begingroup$

I'm working on a new iterative algorithm for generating geometries. I'm trying to update the screen for each iteration on the screen to monitor the results (real-time); blender doesn't respond during the calculations.

Note: I tried this command but didn't work: bpy.ops.wm.redraw_timer(type='DRAW', iterations=1,time_limit=0)

$\endgroup$
1
  • $\begingroup$ Suggest also looking at using a modal (see modal timer op template) and running each iteration in modal Not sure re the wm.redraw_timer op in particular, running a lot of operators can slow down blender over time. blender.stackexchange.com/questions/7358/… btw select code and hit ctrl-K or hit {} code button for code markdown. $\endgroup$
    – batFINGER
    Nov 28, 2018 at 9:31

1 Answer 1

2
$\begingroup$

This is the right command (Problem Solved): bpy.ops.wm.redraw_timer(type='DRAW_WIN_SWAP', iterations=1)

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .