[Paraview] Setting a specific time in pvpython
Cory Quammen
cory.quammen at kitware.com
Thu Jun 21 09:35:49 EDT 2018
Juan,
In newer versions of ParaView (5.5.2 was released just a couple days ago),
you can use the Force Time filter to lock a data set at a specific time. In
Python, this looks like
# create a new 'Force Time'
forceTime1 = ForceTime(Input=canex2)
# Properties modified on forceTime1
forceTime1.ForcedTime = 20.0
Here, I am forcing the data set to be at time 20.0.
See this post which may further address what you are trying to do:
https://discourse.paraview.org/t/how-to-displace-by-time-t-time-0/138
Thanks!
Cory
p.s. We are moving community support to https://discourse.paraview.org/.
Please post additional help requests on that forum.
On Thu, Jun 21, 2018 at 3:24 AM ROJAS-CARRILLO Juan-javier <
jrojasca at ens-paris-saclay.fr> wrote:
>
> Hi all,
>
> From a simulation in Paraview Python (V.4.3.1), I need to extract the
> displacement from a specific time. What I have tried (without success)
> to set the time I want is to use the following commands in my pvython
> script:
>
> animationScene1.AnimationTime = 200.0
>
> Also tried,
>
> animationScene1.PlayMode = 'Sequence'
>
> # Properties modified on animationScene1
> animationScene1.LockStartTime = 0
>
> animationScene1.Play()
>
> animationScene1.LockEndTime = 200
> animationScene1.UpdateAnimationUsingDataTimeSteps()
>
> Is there another way in which I can set a specific time here?
>
> Thanks a lot!
>
> Juan
>
> _______________________________________________
> Powered by www.kitware.com
>
> ParaView discussion is moving! Please visit
> https://discourse.paraview.org/ for future posts.
>
> 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:
> https://public.kitware.com/mailman/listinfo/paraview
>
--
Cory Quammen
Staff R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/paraview/attachments/20180621/e8616c4e/attachment.html>
More information about the ParaView
mailing list