From: Bruce P. <bap...@te...> - 2003-12-02 03:24:35
|
under windows the ellipsoid object is not recognized in noconsole mode. example code snipette from stonehenge example """ The following code runs correctly when run in console mode ie 'ellipsoiderr.py' but generates an exception when run in noconsole mode ie 'ellipsoiderr.pyw' """ from visual import * scene.title = "Surreal Stonehenge" scene.height = 600 scene.width = 600 scene.range = (18,18,18) scene.center = (0,2,0) grey = (0.8, 0.8, 0.8) Nslabs = 8 R = 10.0 w = 5.0 d = 0.5 h = 5.0 v0 = 1 v = v0 Rcloud = 0.8*R omegacloud = v0/Rcloud try: cloud = ellipsoid(pos=(0,0.7*h,-Rcloud), size=(5,2,2), color=(0.4,0.4,0.4)) except Exception, estmt: logfile=file("EllipsoidErr.log","w") logfile.write(" Exception was " + str(estmt) + "\n") logfile.flush() logfile.close() while 1: rate(30) Bruce Peterson 425 466 7344 |