#1
|
|||
|
|||
Help with Vizard crashes...
Hello, can someone look at this and tell us why we are crashing. If we run the script for too long it will most likely crash and if we close it, it crashes for sure.
Thanks for your help, Luc, Evan and Chris. viz.go() PORT_PPT = 4 viz.clearcolor(1,1,1) #viz.add('tut_ground.wrl') #ball = viz.add('white_ball.wrl') #ball.translate(0,2,5) ppt = viz.add('vizppt.dls') ppt2 = viz.add('vizppt.dls') ppt3 = viz.add('vizppt.dls') ball.link(ppt2) #the following modifies the model's appearance toon = viz.add('toon.dlm') ball.modify(toon) def ontimer(num): data = ppt.get() #this one will make the model slowly transform #ball.size(data[0],data[1],data[2]) #this one makes the model quickly scale ball.scale(data[0],data[1],data[2]) pos = ppt3.get() ball.lookat(pos,0,viz.ABSOLUTE_WORLD) #ppt.command(4.002) # Scales all by 2.0 viz.callback(viz.TIMER_EVENT, ontimer) viz.starttimer(1,viz.FASTEST_EXPIRATION, viz.FOREVER)
__________________
Luc Vanier |
Thread Tools | |
Display Modes | Rate This Thread |
|
|