From: John B. <jb...@te...> - 2005-12-07 06:04:53
|
> 1. Re: Horror story (Jonathan Brandmeyer) > From: Jonathan Brandmeyer <jbr...@ea...> [deletions] > I think that it means that you were somehow creating an visual object > with an explicit color value set to "None" rather than a 3-tuple. That's really odd, since I don't. (*grin*) What I'm doing is using an HSV color 3-tuple, since I only have to work with one element (the H, the first in the 3-tuple) in order to get a full range of colors according to a certain property of the object. I then just translate the HSV to RGB for VPython's use. Even if the first element of the tuple were weird, the other two elements are explicitly 1 and 1 (hue, 1,1). > You can add an extra couple of lines of code to > process_init_args_from_keyword_dictionary (in primitives.py) that tests > keywords for the 'color' key and prints out the value if it exists. > eg, > if 'color' in keywords: > print type(keywords['color']), keywords['color'] Thank you, Jonathan, I'll try that, but I can't print anything to the shell window; I'll have to try to write any messages to a file and even that is unlikely to work. When the program runs and expecially when this happens, the program hogs focus and the CPU is in 100% usage. I can't even Windows-multitask at all and that's on a 2.2 GHz (Intel 3.4 GHz equivalent) Athlon64 w/512 MB memory. Thus I can't _see_ the shell without minimizing the stereo window, which sometimes works (after a _long_ pause) and sometimes doesn't. There's no chance of catching "live" error messages, or more than one of them if static. This is all because the scene.exit=0 function (close the stereo window; leave the shell and edit windows open) _doesn't work_ in this VPython (2.4). I wanted especially to know if that has been fixed. Has it? (I know there's a new version up, but has this particular irritant been fixed in it? I can't go on forever re-initializing Idle every time I close the stereo window. It makes it really hard to work on a program when I have to start from scratch every time I test some minor thing and have to close the stereo window....) Peace JB jb...@te... Web: http://tetrahedraverse.com |