Open jsanchez679 opened 11 months ago
Hi Juliana I suggest to upgrade to a newer version
pip install vtk -U
pip install vedo -U
pip install imageio[ffmpeg]
then e.g.:
from vedo import dataurl, Plotter, Mesh, Video
msh = Mesh(dataurl+"spider.ply").rotate_x(-90)
msh.texture(dataurl+"textures/leather.jpg")
plt = Plotter(bg="beige", bg2="lb", interactive=False)
plt += [msh]
plt.show() # render the scene
##############################################################
# Open a video file and force it to last 3 seconds in total
video = Video("spider.mp4", duration=3) # or gif
# Any rendering loop goes here, e.g.:
for i in range(80):
plt.azimuth(2).elevation(1)
video.add_frame() # add individual frame
video.close() # merge all the recorded frames and write to disk
print("done.")
plt.interactive().close()
Hi @marcomusy , I was trying the makeVideo.py example file and I am getting an error. The code I am using is:
and the error I am getting is:
vedo -- info shows this:
I was also looking at a closed issue ( #504 ) and realised it is possible to create a video of rotating meshes having different subplots. Can you please provide me with an example to do this?
Thanks in advance! Juliana