[Paraview] saving animations from python

Blaise Bourdin bourdin at lsu.edu
Thu Jun 16 11:52:30 EDT 2011


Hi,

I am trying to script still frames and movie animations (time evolution) in python. The goal is to do batch processing of a large number of simulations.

Parsing through the online documentation and wiki, I was able to do basic movie files using the AnimateReader function, but I can't figure out how to control the properties of the movie (number of frames, number of frames per second etc). Trace does not return anything useful when using File -> Save Animation… in the GUI.
   - Is it possible to set the options from the File -> Save Animation menu programmatically in python?

I also looked into using keyframes for the time evolution, following the 3rd example at file:///opt/HPC/ParaView-3.10.1/Documentation/Book/Book_Chapter14.html#Animating but still have issues: 
   - How do I set the cue in a keyframe to be the analysis time / time step number?
   - Is it possible to programmatically save an animation to an avi file in python?

Regards,

Blaise

-- 
Department of Mathematics and Center for Computation & Technology
Louisiana State University, Baton Rouge, LA 70803, USA
Tel. +1 (225) 578 1612, Fax  +1 (225) 578 4276 http://www.math.lsu.edu/~bourdin









More information about the ParaView mailing list