...
Once a simulation has been reached the last simulation frame, RealFlow will start the creation of an OpenGL preview. The script checks if the images will be stored:goes through the simulation, takes screenshots from every frame, and saves them. After this process, a message is being printed in orange to point you to the images' location.
Code Block |
---|
lastFrame = scene.getMaxFrames()
if (scene.getCurrentFrame() == lastFrame):
path = scene.getExportResourcePath(2)
for frame in range(scene.getMinFrame(), lastFrame + 1):
scene.setCurrentFrame(frame)
openGLImage = scene.getCurrentViewportImage()
openGLImage.save(path)
scene.message("<font color=orange> <font size=3>The images can be found under "+path+"</font>") |