BTW the comment on the last line should read "#assuming 5 < len(timesteps)".

On Thu, Mar 31, 2016 at 5:07 PM, Scott, W Alan <wasc...@sandia.gov> wrote:
> Perfect, thanks.
>
>
> -----Original Message-----
> From: Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com]
> Sent: Thursday, March 31, 2016 2:58 PM
> To: Scott, W Alan
> Cc: paraview@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)
_______________________________________________
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to