[英]How can i create an animation scene by scene in paraview using python script
Good evening, I have a series of vtk files. 晚上好,我有一系列的vtk文件。 I wrote a script that performs a specific rotation of those files and then using animationScene1.GoToNext() goes to the next scene, a new rotation is performed etc How can i also add the newly created scene to an video format output?
我编写了一个脚本,对这些文件进行特定的旋转,然后使用animationScene1.GoToNext()转到下一个场景,执行新的旋转等。如何将新创建的场景添加到视频格式输出中? In short, i want every time the script jumps to a new scene and rotation to save the old one and in the end have a video with the correct rotation per scene Thank you very much for your time
简而言之,我希望每次脚本跳到一个新场景并轮换保存旧的场景时,最后要制作一个视频,每个场景具有正确的轮换,非常感谢您的宝贵时间
Since you are moving the camera to specific position using a python script, the easiest way will be to save the images yourself in your script using 由于您是使用python脚本将摄像机移动到特定位置,因此最简单的方法是使用以下命令将图像保存到脚本中
SaveScreenshot("path/to/your/imageN.png")
And then reconstruct a video from all the images. 然后从所有图像重建视频。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.