[Paraview] time step from within a programmable filter

Aurélien Marsan aur.marsan at gmail.com
Wed May 28 16:33:52 EDT 2014


Yes, thanks a lot !

Aurélien


2013-09-12 16:57 GMT-04:00 joseph insley <insley at anl.gov>:

> Awesome, exactly what I was looking for.  Thanks, Berk.
>
> joe
>
> On Sep 12, 2013, at 3:46 PM, Berk Geveci wrote:
>
> 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.geveci at 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 <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
>>>
>>
>>
>
>
> _______________________________________________
> 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/20140528/468f1018/attachment.html>


More information about the ParaView mailing list