[Paraview] time step from within a programmable filter
Berk Geveci
berk.geveci at kitware.com
Thu Sep 12 16:46:23 EDT 2013
t = inputs[0].GetInformation().Get(vtk.vtkDataObject.DATA_TIME_STEP())
or
t =
self.GetInputDataObject(0,0).GetInformation().Get(vtk.vtkDataObject.DATA_TIME_STEP())
On Thu, Sep 12, 2013 at 4:03 PM, joseph insley <insley at anl.gov> wrote:
> Hi, all,
>
> I believe there must be a way to do this, but thus far all of my attempts
> have been unsuccessful. I have a programmable filter which calculates a
> new scalar field, which I then would like to write some information about
> to a file. This much I have working successfully. I would now like to
> animate through a time series, applying this filter, and writing out a
> separate file for each time step. So, from within this programmable filter
> I'd like to get the current time step (either the index or the actual time
> value, or perhaps the file name of the current step, any of these would
> work) in order to generate filenames that map back to the original data.
> Any advice on how to do this would be appreciated.
>
> Thanks,
> joe
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130912/b9f4fd29/attachment-0001.htm>
More information about the ParaView
mailing list