[Paraview] Saving screen shots of multiple views from an animation with python

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Tue Jan 12 16:01:47 EST 2010


> Yes that would be possible, but this would invoke the whole
> visualization pipeline for each timestep in each animation, with the
> call of writer.Save(). If I do it this way, right?

Yes you are correct.

>>> * Run the animation manually (still using the animation scene) and save the
>>> views yourself.
>>>
> Do you mean to run the animation with scene.Play() and then save the
> screenshots of the popped up windows by hand? This would be possible,
> but it is not exactly, what I expect from an automated python script
> (then option one is in that case, my preferred one).

Not really, I think Berk means this:

for cur_time in  reader.TimestepValues.GetData()[:]:
    scene.AnimationTime = cur_time
    WriteImage("foo1.%f.png" % cur_time, view1);
    WriteImage("foo2.%f.png" % cur_time, view2);

Utkarsh


More information about the ParaView mailing list