Notifications
Clear all
[Closed] Udating viewports
Sep 05, 2007 6:22 pm
Hi, I´m trying to update the viewports on every iteration of a for loop, this way I can see the process of the script as it runs.
As a simple example:
Say I wanted a row of boxes to form with the for loop:
for i = 1 to 10 do box length:20 width:20 height:20 pos:[i*20,0,i*20]
The problem here is I just see the end result pop on the viewports, Is there a way for me to see each box created in the viewport as the loop iterate??
Thanks in advance.
2 Replies
Sep 05, 2007 6:22 pm
You can use the completeRedraw() command. It will update the viewports for you. It may not be the most effecient approach for this but it works well.
[color=white]for[/color] i = 1 to 100 do
[size=2](
x = random 0 100
y = random 0 100
z = random 0 100
b = box()
b.pos = [x,y,z]
completeRedraw()
)
-bnvm[/size]