From: Bruce S. <ba...@an...> - 2000-10-18 19:12:42
|
--On Wednesday, October 18, 2000, 11:22 AM -0700 "Richard H. C. Seabrook" <rhs...@ma...> wrote: > Hello, I'd like to generate a plot in VPython and output it to a JPG on > the fly so I can display the results of vector comparisons on a web > page. If this has been discussed before, please point me to > it. Otherwise, anyone have a suggestion for how to go about it? Depends on what you mean by "on the fly". On Windows you can do this: To make a copy of only the active window, press ALT+PRINT SCREEN. To copy the entire screen as it appears on your monitor, press PRINT SCREEN. If you place "scene.mouse.getclick()" in your program at the point where you intend to make the screen copy, the program will halt until there is a mouse click. If on the other hand you mean "How can I be running a VPython program which every few seconds outputs a JPEG file which is read up by a browser" then I'm totally out of my depth. It wouldn't surprise me however to find that among the vast collection of Python modules there is something that would do even this. Bruce Sherwood |