From: Aaron M. <mav...@gm...> - 2011-08-29 22:42:15
|
On Mon, Aug 29, 2011 at 6:24 PM, Bruce Sherwood <Bru...@nc...> wrote: > I don't understand this description of making a display invisible and > then visible. What I thought would happen is what does happen: Setting > display invisible just makes it invisible, doesn't delete it, and then > later making it visible again makes it visible again, with all of its > objects intact. Oh? Could be a bug specific to my setup then (Gentoo Linux, Python 2.7.1, Visual 5.4)? Maybe something at the OpenGL level? >>> import visual >>> visual.sphere() <vis.primitives.sphere object at 0xf4d0a8> >>> visual.scene.visible = False >>> visual.scene.visible = True >>> visual.scene.objects (<vis.primitives.sphere object at 0xf4d0a8>,) When I do the above, I end up with a blank window. As you can see, visual.scene is not deleted and it still has a reference to the sphere, but I am definitely not seeing a sphere in the window. :) Let me know if you need any other information from me. -- Aaron Mavrinac www.mavrinac.com |