[Paraview] Setting up animation with Paraview

Alessandro Comunian alessandro.comunian at gmail.com
Thu Feb 20 20:34:36 EST 2014


Hi Jesse,

I'm not 100% this could be the answer to your question, but if you want to
produce an animation of different 2D slices through your model, then
hereinafter there is a python script that I use to do that:

--------------------------------------------------------

def start_cue(self):

global z_curr

z_curr = 0


def tick(self):

global z_curr

# Select the source named "data"

MyActiveSrc = FindSource("data")


 data_repr = GetDisplayProperties(MyActiveSrc)


 data_repr.Slice = z_curr

z_label = FindSource("z_label")

z_label.Text = 'z=%04d'%(z_curr)

z_curr = z_curr + 1


def end_cue(self): pass

--------------------------------------------------------


In my pipeline I have a 3D dataset with the slice representation (named
"data") and text source for reporting the z-slice level (named "z_label").

You can add the python script from the "Animation View" (from there, you
could also add camera movements...).


Hope it helps,


Cheers,


Alessandro










2014-02-20 13:02 GMT+11:00 Jesse Samluk <sevensam at udel.edu>:

> Greetings all,
>
>    Attached is an image I created in Paraview, Z-X Axis shot (and I can
> recreate them in Paraview as necessary, no problems there).
>
>    So, I'm trying to figure out the Animation feature in Paraview. Is
> there a way to set up a "fly-through" that looks from the top surface (Y-X
> plane, I know this image would have to be rotated) going down through the Z
> axis to the bottom?
>
>    I really don't have a clue how to set up an animation, and I've played
> around with it and checked the help, but nothing helps.
>
>   Thanks!
>    Jesse
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20140221/3c521a3d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ControlRun3RidgeApexFaceOnYAxisInNewLogScale.png
Type: image/png
Size: 126076 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20140221/3c521a3d/attachment-0001.png>


More information about the ParaView mailing list