Stephane PLOIX wrote:
Hi,
At the end of the python scripting wiki page
(http://paraview.org/Wiki/ParaView/Python_Scripting), you give an example
on how to create an animation via python.
However, this animation is not visible in the Animation View, and I did
not find how to save the images to create a film.
*How to dump the animation to images with the scene.Play method?
the answer lies in the source code of servermanager.py
Add these 5 lines to your code:
writer = servermanager.vtkSMAnimationSceneImageWriter()
writer.SetFileName(/tmp/foo.jpg)
writer.SetFrameRate(1)
writer.SetAnimationScene(scene.SMProxy)
writer.Save()
Jean--
Swiss National Supercomputing Center
___
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView
Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview