Move Source (disk or sphere) according to time dependent function

You can do this with some of the animation controls.

Let’s say you add a Sphere source. It’s name in the Pipeline Browser will be “Sphere1”. Open up the Animation View. In the popup menu to the right of the blue plus sign, select, “Python”, then click the plus sign. In the track to the right of the new animation trick, double-click your mouse. In the “Edit Python Animation Track” dialog that appears, enter this script:

from paraview.simple import *

def start_cue(self): pass

def tick(self):
  tk = GetTimeKeeper()
  t = tk.Time
  center = [t, 0, 0]
  s = FindSource('Sphere1')
  s.Center = center

def end_cue(self): pass

This will move the sphere along the x-axis according to ParaView’s current time.