# colorbar visibility using animation view

**URL:** https://discourse.paraview.org/t/colorbar-visibility-using-animation-view/7023
**Category:** ParaView Support
**Created:** [April 21, 2021, 8:15pm UTC](https://discourse.paraview.org/t/colorbar-visibility-using-animation-view/7023 "2021-04-21T20:15:02Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Mike\_Tree](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mike_tree/32/5126_2.png) [@Mike\_Tree](https://discourse.paraview.org/u/Mike_Tree)
#### Post date: [April 21, 2021, 8:15pm UTC](https://discourse.paraview.org/t/colorbar-visibility-using-animation-view/7023/1 "2021-04-21T20:15:02Z")

</div>

Is it possible to control the visibility of the colorbar using the animation view? How can I make a colobar disappear at a certain time?

---

<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: [April 22, 2021, 10:50am UTC](https://discourse.paraview.org/t/colorbar-visibility-using-animation-view/7023/2 "2021-04-22T10:50:48Z")

</div>

I’m afraid display parameters cannot be controlled by the animation (yet).

IMO they should be, feel free to open an issue for it.

---

<div class="post-metadata">

### Author: ![Mike\_Tree](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mike_tree/32/5126_2.png) [@Mike\_Tree](https://discourse.paraview.org/u/Mike_Tree)
#### Post date: [April 23, 2021, 10:15pm UTC](https://discourse.paraview.org/t/colorbar-visibility-using-animation-view/7023/3 "2021-04-23T22:15:37Z")

</div>

I’ll be sure to open an issue. In the mean time, is there any way I can access the colorbar via the Python track in the animation view? Maybe I can use that to mark the timestep I’m currently on, and then grab the colorbar and hide it at the appropriate time?

---

<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: [April 26, 2021, 7:14am UTC](https://discourse.paraview.org/t/colorbar-visibility-using-animation-view/7023/4 "2021-04-26T07:14:07Z")

</div>

You can add a “Python” animation track and use any pvpython code there, which should let you do what you are looking for.

---

<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: [April 26, 2021, 6:05pm UTC](https://discourse.paraview.org/t/colorbar-visibility-using-animation-view/7023/5 "2021-04-26T18:05:22Z")

</div>

@wascott ping.

---

<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: [September 8, 2021, 3:52pm UTC](https://discourse.paraview.org/t/colorbar-visibility-using-animation-view/7023/6 "2021-09-08T15:52:29Z")

</div>

Here is the script:

```auto
from paraview.simple import *

def start_cue(self): pass

def tick(self):
  animationScene1 = GetAdnimationScene()
  animationTime = animationScene1.TimeKeeper.Time
  rep=GetDisplayProperties()
  rep.SetScalarBarVisibility(GetActiveView(), animationTime > VALUE)

def end_cue(self): pass

```
