Jean,

(sorry for the delay)

You're of course right :). I created the Python script after the fact,
rather then as I was setting up the filter.

You can add something like the following to the end of the script to update
the timesteps in the UI. (Note, if you use Python Trace to open an data
file, you'll see the following lines getting added to it automatically)

#====================
# get animation scene
animationScene1 = GetAnimationScene()
# update animation scene based on data timesteps
animationScene1.UpdateAnimationUsingDataTimeSteps()

Utkarsh


On Wed, Jan 25, 2017 at 11:07 AM, Favre Jean <[email protected]> wrote:

> I have examined Utkarsh's example because it is similar to one of my
> projects. Thanks.
>
> Yet, I am sorry to say I cannot execute it cleanly, without a small edit.
>
> I run PV 5.2.
> I execute script.py from the Python Shell. An image of the can is
> displayed, yet what is not working is that the Information Tab has an empty
> set of Timestep index, and Timestep Value. Consequently, the VCR Play
> button will go thru timestep values = 0, 0.111, 0.222, 0.333, 0.444 etc....
>
> My work-around is to go back to the ProgrammableSource and force
> re-execution manually, by simply deleting the first empty line of "Script"
> and forcing re-execution.
>
> This is more than an aesthetic problem. This prevents the correct
> execution of time-dependent programmable sources in BATCH mode. I have yet
> to manage to get my time-aware analysis working.
>
> Do you not run into the same problem?
>
> -----------------
> Jean/CSCS
_______________________________________________
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