# TimestepValues Error : No Attribute

**URL:** https://discourse.paraview.org/t/timestepvalues-error-no-attribute/7488
**Category:** ParaView Support
**Tags:** python
**Created:** [June 25, 2021, 3:07pm UTC](https://discourse.paraview.org/t/timestepvalues-error-no-attribute/7488 "2021-06-25T15:07:25Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Akash](https://discourse.paraview.org/user_avatar/discourse.paraview.org/akash/32/6994_2.png) [@Akash](https://discourse.paraview.org/u/Akash)
#### Post date: [June 25, 2021, 3:07pm UTC](https://discourse.paraview.org/t/timestepvalues-error-no-attribute/7488/1 "2021-06-25T15:07:25Z")

</div>

Hey,  
I am quite new to paraview.Here I am trying to jump to a specific time step in my data.Here is the pvpython code:

```auto
n=3
reader = GetActiveSource()
view = GetActiveView()
times = reader.TimestepValues
view.ViewTime = times[n]
Render()

```

But I am getting the following error:

```auto
 times = reader.TimestepValues()
  File "E:/BlueCFD/blueCFD-Core-2020/AddOns/ParaView/bin\Lib/site-packages\paraview\servermanager.py", line 497, in __getattr__
    return getattr(self.SMProxy, name)
AttributeError: 'vtkPVServerManagerCorePython.vtkSMSourceProxy' object has no attribute 'TimestepValues'

```

Thanks for your time and support 🙂

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [June 25, 2021, 3:18pm UTC](https://discourse.paraview.org/t/timestepvalues-error-no-attribute/7488/2 "2021-06-25T15:18:33Z")

</div>

did you call UpdatePipelineInformation ?

---

<div class="post-metadata">

### Author: ![Akash](https://discourse.paraview.org/user_avatar/discourse.paraview.org/akash/32/6994_2.png) [@Akash](https://discourse.paraview.org/u/Akash)
#### Post date: [June 25, 2021, 3:22pm UTC](https://discourse.paraview.org/t/timestepvalues-error-no-attribute/7488/3 "2021-06-25T15:22:01Z")

</div>

Thanks for the reply. I am sorry. I have no idea what that is. Should I call that function. Could you tell me what to add in the code

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [June 25, 2021, 3:28pm UTC](https://discourse.paraview.org/t/timestepvalues-error-no-attribute/7488/4 "2021-06-25T15:28:30Z")

</div>

```auto
n=3
reader = GetActiveSource()
view = GetActiveView()
reader.UpdatePipelineInformation()
times = reader.TimestepValues
view.ViewTime = times[n]
Render()

```

---

<div class="post-metadata">

### Author: ![Akash](https://discourse.paraview.org/user_avatar/discourse.paraview.org/akash/32/6994_2.png) [@Akash](https://discourse.paraview.org/u/Akash)
#### Post date: [June 25, 2021, 3:32pm UTC](https://discourse.paraview.org/t/timestepvalues-error-no-attribute/7488/5 "2021-06-25T15:32:40Z")

</div>

Still the same error : (

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [June 25, 2021, 5:07pm UTC](https://discourse.paraview.org/t/timestepvalues-error-no-attribute/7488/6 "2021-06-25T17:07:09Z")

</div>

I have an example in the Sandia ParaView Tutorial, found from ParaView’s Help Menu. The toturial of interest is ParaView and Python, towards the bottom. In that is a section on Time. [https://www.paraview.org/Wiki/ParaView\_and\_Python#Control\_time](https://www.paraview.org/Wiki/ParaView_and_Python#Control_time) Here is a snippet:

```auto
        animationScene1 = GetAnimationScene()
        tk = GetTimeKeeper()
        timesteps = tk.TimestepValues
        animationScene1.AnimationTime = timesteps[9] # index starts with 0

```

---

<div class="post-metadata">

### Author: ![Akash](https://discourse.paraview.org/user_avatar/discourse.paraview.org/akash/32/6994_2.png) [@Akash](https://discourse.paraview.org/u/Akash)
#### Post date: [June 25, 2021, 5:29pm UTC](https://discourse.paraview.org/t/timestepvalues-error-no-attribute/7488/7 "2021-06-25T17:29:36Z")

</div>

Thanks for the reply. I tried this and there was no error but there is no change in data too. I exported csv with n=0 and n= random numbers and both are identical.

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [June 25, 2021, 5:55pm UTC](https://discourse.paraview.org/t/timestepvalues-error-no-attribute/7488/8 "2021-06-25T17:55:01Z")

</div>

How big is your dataset? Can you post it here?

---

<div class="post-metadata">

### Author: ![Akash](https://discourse.paraview.org/user_avatar/discourse.paraview.org/akash/32/6994_2.png) [@Akash](https://discourse.paraview.org/u/Akash)
#### Post date: [June 25, 2021, 6:15pm UTC](https://discourse.paraview.org/t/timestepvalues-error-no-attribute/7488/9 "2021-06-25T18:15:40Z")

</div>

I can’t show you the data. I will post the entire macro script here. I am importing 3d\_mesh then I am slicing to get a 2d plane. On the 2d plane, I am plotting data along a line at different positions of x using while loop. I have to repeat this for all my time steps ( 0 to 48)

[macro.txt](https://discourse.paraview.org/uploads/short-url/3f2DlryAcMDKvw17dGEMQzMwz4g.txt) (2.0 KB)

---

<div class="post-metadata">

### Author: ![Akash](https://discourse.paraview.org/user_avatar/discourse.paraview.org/akash/32/6994_2.png) [@Akash](https://discourse.paraview.org/u/Akash)
#### Post date: [June 25, 2021, 7:25pm UTC](https://discourse.paraview.org/t/timestepvalues-error-no-attribute/7488/10 "2021-06-25T19:25:44Z")

</div>

Guys, I just changed OpenFOAMReader to OpenDataFile and it works 🙂
