*python documention & bug fix

- added documentation to Render - saveRenderedImage has an option to save the zbuffer along with the image
(off by default)
- fixed a really annoying runtime error of uninitialized data being passed to a method in pipeline.c during a render
This commit is contained in:
2006-05-25 21:10:28 +00:00
parent af87c651a5
commit 1b577b7f0d
3 changed files with 6 additions and 2 deletions

View File

@@ -107,11 +107,13 @@ class RenderData:
Render a series of frames to an output directory.
"""
def saveRenderedImage(filename):
def saveRenderedImage(filename, zbuffer=0):
"""
Saves the image rendered using RenderData.render() to the filename and path
given in the variable 'filename'
@param filename: The path+filename for the rendered image.
@type zbuffer: int
@param zbuffer: Whether or not to render the zbuffer along with the image.
@type filename: string
@since: 2.40
@requires: You must have an image currently rendered before calling this method