[Paraview-developers] Updating TimestepValues

owen.arnold at stfc.ac.uk owen.arnold at stfc.ac.uk
Wed Sep 14 11:43:47 EDT 2011


It seems that updates to the time ranges via the TimestepValues property in Paraview are ignored. I have a filter that adapts the time ranges, but they have no effect on the animation gui controls. Using a python macro I can patch this problem as follows:

src = GetActiveSource()
src.Modified()
src.UpdatePipelineInformation()
src.UpdatePipeline()
#Get the vtkSMProperty timestep values and use those.
timesteps = src.GetProperty("TimestepValues")
scene = GetAnimationScene()
lastTime = timesteps.GetElement(len(timesteps)-1)
scene.EndTime = lastTime
Render()

How can I do the equivalent to this via the c++ API?

Thanks in advance,
Owen.

-- 
Scanned by iCritical.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20110914/b82131fd/attachment.htm>


More information about the Paraview-developers mailing list