# How to use time value in pipeline

**URL:** https://discourse.paraview.org/t/how-to-use-time-value-in-pipeline/5093
**Category:** In Situ Support
**Created:** [August 12, 2020, 10:54am UTC](https://discourse.paraview.org/t/how-to-use-time-value-in-pipeline/5093 "2020-08-12T10:54:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![menno](https://discourse.paraview.org/user_avatar/discourse.paraview.org/menno/32/1127_2.png) [@menno](https://discourse.paraview.org/u/menno)
#### Post date: [August 12, 2020, 10:54am UTC](https://discourse.paraview.org/t/how-to-use-time-value-in-pipeline/5093/1 "2020-08-12T10:54:37Z")

</div>

I’m trying to find out how to use the time value in a pipeline script that is called every time step. Currently, the pipeline is created in

```auto
def CreateCoProcessor():
  def _CreatePipeline(coprocessor, datadescription):
    class Pipeline:
      # create pipeline here
      time = datadescription.GetTimeStep()
      # use time

```

unfortunately, it seems that this calling of the `GetTimeStep()` is only done on pipeline creation, while I would like to change pipeline settings based on the time value itself.

How to achieve this?

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [August 12, 2020, 11:25am UTC](https://discourse.paraview.org/t/how-to-use-time-value-in-pipeline/5093/2 "2020-08-12T11:25:29Z")

</div>

You can do that in `DoCoProcessing` function. `coprocessor.Pipeline` gives you access to the all the pipeline objects i.e. filters etc. create. You can modify params on them in `DoCoProcessing` as needed.
