This will give you the time value despite the name of the key. -berk
On Thu, Sep 12, 2013 at 4:46 PM, Berk Geveci <berk.gev...@kitware.com>wrote: > 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 <ins...@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 >> > >
_______________________________________________ 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