I have this small script where I want to delay the execution of a rendering (with sleep) and I would like to use a progressBar as an indicator for when the rendering actually starts (see script).
iSeconds = 3
for i = 1 to iSeconds do
format "starting in % sec...\n" ( iSeconds - iSecondsWaited )
progressUpdate ( i / iSeconds * 100.0 )
But it seems that neither the progress bar nor any of the viewports are being updated within the for-loop. If I replace the sleep by something else that takes a little time (like a math. calculation) it works like a charm. It would be nice to have some visual feedback though. Does anybody have an idea what is wrong here ? I am on MAX 9 64 Bit.