|
From: Stef M. <s.m...@ru...> - 2008-12-09 22:12:11
|
Bruce Sherwood wrote: > I wasn't even aware of there being routines in Visual 3 called > scene.show() and scene.hide(). I can't find them mentioned in the > Visual 3 documentation. Where are they discussed? > well I never read the doc so thoroughly, as every one else does ;-) but I've a very good autocompletion editor, and that shows even 3 versions of hide ! > The documented way to hide and show a window is by setting scene.visible. > Ok, that also works fine in mine situation. > I can't reproduce any errors with picking an object. The following > routine correctly picks the appropriate object, no matter how I rotate > the scene: > > b = box(pos=(-1,0,0)) > c = cylinder(pos=(1,0,0), axis=(0,1,0)) > d = pyramid() > while 1: > if scene.mouse.clicked: > click = scene.mouse.getclick() > print click.pick > > Please post a complete routine that fails, since I can't see any failure. I already uninstalled VPython-5 (btw where is version 4, I thought the latest version was 3.2.11 ?) , because without the correct mouse picking it's worthless in mine application. I'm not able to shrink my program (which is rather large, about 500 lines), so I'll first finish my program, then I'll try VP5 again and will send you the minimalistic program. cheers, Stef |