Skip to content
Branch: master
Find file Copy path
Find file Copy path
2 contributors

Users who have contributed to this file

@marcomusy @Gjacquenot
25 lines (19 sloc) 668 Bytes
Make a video (needs ffmpeg)
Set offscreen=True to only produce the video
without any graphical window showing
from vtkplotter import *
# declare the class instance
vp = Plotter(bg='beige', axes=10, interactive=0, offscreen=True)
# open a video file and force it to last 3 seconds in total
video = Video(name="spider.mp4", duration=3)
for i in range(80): # render the scene first # rotate by 5 deg at each iteration
video.close() # merge all the recorded frames
You can’t perform that action at this time.