colorbar visibility using animation view

Here is the script:

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
1 Like