Download this example
.
#!/usr/bin/env pvpython
from paraview.simple import *
LoadPlugin("../../migflow/paraview_utils/migflow_plugins.py")
view = GetActiveViewOrCreate('RenderView')
view.ViewSize = [1090,1670]
Render()
source = OpenDataFile("./output-depot/solid.migs")
source.SetDefault()
view.CameraParallelProjection = 1
view.OrientationAxesVisibility = 0
view.CameraParallelScale = 0.35
scene = GetAnimationScene()
scene.NumberOfFrames = len(source.TimestepValues)
SaveAnimation("depot.avi", FrameRate=30)
#Interact()
#for i, t in enumerate(source.TimestepValues):
# view.ViewTime = t
# Render()
# SaveScreenshot(f'depot-{i:05d}.png', view, ImageResolution=[1670, 1091])