Firstly, is the ‘Render’ button supposed to save an image?
‘Anim’ will save images, but I can’t get rid of the numbering. I only have one frame. If I leave out any ‘#’ characters from the image path, it will write as ‘<image>0001.png’, if I include a single #, it will write as ‘<image>1.png’.
Is there a way to make it output the exact path?
I was also wondering if there was a way to do it in a script for different scenes.
This is my script so far:
import Blender from Blender import * from Blender.Scene import Render root = Scene.Get() for scn in root: context = scn.getRenderingContext() context.renderPath = "//render/" + scn.getName() + "#.png" context.renderAnim() # This doesn't work - it asks for input which the user cannot give it in the console window #context.saveRenderedImage(scn.getName() + "#.png") Render.CloseRenderWindow()
Basically, I need to:
- Iterate each scene
- Render each scene
- Save each render image to a path based upon the scene’s name (WITHOUT the numbering)