[Paraview] using with python - VTK multifiles animate
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Fri Jul 3 09:02:07 EDT 2009
Doesn't the following work?
> simple.AnimateReader(yourreader)
If it does take a look at the implementation in
ParaView3Source/Utilities/VTKPythonWrapping/paraview/simple.py
Utkarsh
On Thu, Jul 2, 2009 at 6:01 AM, BOUSSOIR Jonathan
167706<Jonathan.BOUSSOIR at cea.fr> wrote:
>
> Hi all,
>
> I am work with Paraview (3.7) and with linux.
> I had done on Paraview to load VTK multifigure and clic a play button to see animation.
> I would like to do a same on Pythyn with paraview and I don't know how to do the animation.
>
>
> from paraview.simple import *
> Connect('localhost')
>
> f = ["coupe01.vtk", "coupe02.vtk", "coupe03.vtk", "coupe04.vtk"]
> readers = []
> for f in files:
> reader = servermanager.sources.LegacyVTKReader(FileNames=f)
> readers.append(reader)
>
> Show(readers[0])
> Render()
>
> # Create an animation scene
> scene = servermanager.animation.AnimationScene()
> # Add one view
> scene.ViewModules = [GetActiveView()]
>
> # Create a cue to animate the StartTheta property
> cue = servermanager.animation.KeyFrameAnimationCue()
> cue.AnimatedProxy = GetActiveSource()
>
> # Add it to the scene's cues
> scene.Cues = [cue]
> ....
>
> After, I don't know how I would done ?
> Do you have a small pyphon script to explain or if somebody can explained me how I can do.
>
> Thanks in advance for your kind help.
>
> Regards,
> Jona
>
>
> _______________________________________________
> 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
>
More information about the ParaView
mailing list