[SciPy-user] How to save image from a window
Stéfan van der Walt
stefan at sun.ac.za
Thu Apr 17 07:42:08 EDT 2008
Hi Lorenzo
On 17/04/2008, Lorenzo Isella <lorenzo.isella at gmail.com> wrote:
> The problem is the following: I want to make a movie using Python tools.
> The short script I paste below (it needs visual python) plots a chain of
> spheres in a window.
> How can I automatically save the window into e.g. a jpeg file?
> I need automation because I aim at generating O(100) jpeg files for my
> movie.
> I was suggested to use the PIL (python image library) and the ImageGrab
> module, but this seems to be available for Windows only.
> Any suggestion?
You can use the povray plugin (you'll find it via google), which
renders .pov files of every scene. Povray can then be used to convert
each scene to a jpg.
Hope that helps,
Stéfan
More information about the SciPy-User
mailing list