[Paraview] [EXTERNAL] Re: ParaView 5.0 Python and Batch

Scott, W Alan wascott at sandia.gov
Thu Mar 31 17:07:51 EDT 2016


Perfect, thanks.


-----Original Message-----
From: Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com] 
Sent: Thursday, March 31, 2016 2:58 PM
To: Scott, W Alan
Cc: paraview at paraview.org
Subject: [EXTERNAL] Re: [Paraview] ParaView 5.0 Python and Batch

Here's a sample script:

from paraview.simple import *

# Get a list of all available timesteps.
timeKeeper  = GetTimeKeeper()
timesteps = timeKeeper.TimestepValues

# Now make animation scene go to a specific timestep:
scene = GetAnimationScene()
scene.AnimationTime = timesteps[5] # assuming 5 > len(timesteps)


More information about the ParaView mailing list