This object gives access to Scene rendering contexts in Blender.
int (if prototype is empty)
|
|
|
render()
Render the scene. |
|
|
|
bake()
Bake selected objects in the scene. |
|
|
|
renderAnim()
Render a series of frames to an output directory. |
|
|
|
saveRenderedImage(filename,
zbuffer=0)
Saves the image rendered using RenderData.render() to the filename
and path given in the variable 'filename'. |
|
|
|
play()
play animation of rendered images/avi (searches Pics: field). |
|
|
string
|
getTimeCode()
Get the current frame as a string in HH:MM:SS:FF format |
|
|
|
setRenderPath(path)
Set the path to where the renderer will write to. |
|
|
string
|
getRenderPath()
Get the path to where the renderer will write to. |
|
|
string
|
|
|
|
string
|
|
|
|
|
|
string
|
|
|
|
|
|
|
|
|
|
int (if prototype is empty)
|
edgeIntensity(intensity=None)
Get/set edge intensity for toon shading. |
|
|
|
setEdgeColor(red,
green,
blue)
Set the edge color for toon shading. |
|
|
string
|
|
int (if prototype is empty)
|
edgeAntiShift(intensity=None)
With the unified renderer, reduce intensity on boundaries. |
|
|
|
|
|
|
|
|
float (if prototype is empty)
|
motionBlurLevel(level=None)
Get/set the length of shutter time for motion blur. |
|
|
int (if prototype is empty)
|
partsX(parts=None)
Get/set the number of parts to divide the render in the X direction. |
|
|
int (if prototype is empty)
|
partsY(parts=None)
Get/set the number of parts to divide the render in the Y direction. |
|
|
|
enableSky()
Enable render background with sky. |
|
|
|
enablePremultiply()
Enable premultiply alpha. |
|
|
|
enableKey()
Enable alpha and color values remain unchanged. |
|
|
|
|
|
|
|
|
|
|
|
enablePanorama(toggle)
Enable/disable panorama rendering (output width is multiplied by
Xparts). |
|
|
|
|
int
|
|
|
|
|
|
|
|
|
|
|
|
|
setBorder(left,
bottom,
right,
top)
Set a border for rendering from cameras in the scene. |
|
|
|
|
float (if prototype is empty)
|
|
int (if prototype is empty)
|
startFrame(frame=None)
Get/set the starting frame for sequence rendering. |
|
|
int (if prototype is empty)
|
endFrame(frame=None)
Get/set the ending frame for sequence rendering. |
|
|
int (if prototype is empty)
|
imageSizeX(size=None)
Get/set the image width in pixels. |
|
|
int (if prototype is empty)
|
imageSizeY(size=None)
Get/set the image height in pixels. |
|
|
int (if prototype is empty)
|
aspectRatioX(ratio=None)
Get/set the horizontal aspect ratio. |
|
|
int (if prototype is empty)
|
|
|
setRenderer(type)
Get/set which renderer to render the output. |
|
|
|
enableCropping(toggle)
Deprecated: see the crop attribute. |
|
|
|
setImageType(type)
Set the type of image to output from the render. |
|
|
int (if prototype is empty)
|
quality(qual=None)
Get/set quality get/setting for JPEG images, AVI JPEG and SGI movies. |
|
|
int (if prototype is empty)
|
|
|
enableGrayscale()
Images are saved with black and white (grayscale) data. |
|
|
|
enableRGBColor()
Images are saved with RGB (color) data. |
|
|
|
enableRGBAColor()
Images are saved with RGB and Alpha data (if supported). |
|
|
|
sizePreset(type)
Set the renderer to one of a few presets. |
|
|
|
|
|
|
enum constant
|
|
|
|
enum constant -
|
|
float (if prototype is empty)
|
|
float (if prototype is empty)
|
|
int (if prototype is empty)
|
yafrayGIDepth(depth=None)
Get/set number of bounces of the indirect light. |
|
|
int (if prototype is empty)
|
yafrayGICDepth(depth=None)
Get/set number of bounces inside objects (for caustics). |
|
|
|
|
|
|
int (if prototype is empty)
|
|
float (if prototype is empty)
|
|
int (if prototype is empty)
|
|
|
|
float (if prototype is empty)
|
|
int (if prototype is empty)
|
yafrayGIPixelsPerSample(pixels=None)
Get/set maximum number of pixels without samples, the lower the
better and slower. |
|
|
|
|
float (if prototype is empty)
|
|
float (if prototype is empty)
|
yafrayRayBias(bias=None)
Get/set shadow ray bias to avoid self shadowing. |
|
|
int (if prototype is empty)
|
yafrayRayDepth(depth=None)
Get/set maximum render ray depth from the camera. |
|
|
float (if prototype is empty)
|
yafrayGamma(gamma=None)
Get/set gamma correction, 1 is off. |
|
|
float (if prototype is empty)
|
|
|
enableGameFrameStretch()
Enable stretch or squeeze the viewport to fill the display window. |
|
|
|
enableGameFrameExpose()
Enable show the entire viewport in the display window, viewing more
horizontally or vertically. |
|
|
|
enableGameFrameBars()
Enable show the entire viewport in the display window, using bar
horizontally or vertically. |
|
|
|
|
string
|
|
float (if prototype is empty)
|
gammaLevel(level=None)
Get/set the gamma value for blending oversampled images (1.0 = no
correction). |
|
|
float (if prototype is empty)
|
|
float (if prototype is empty)
|
|
float (if prototype is empty)
|
|
int (if prototype is empty)
|
SGIMaxsize(size=None)
Get/set maximum size per frame to save in an SGI movie. |
|
|
|
enableSGICosmo(toggle)
Enable/disable attempt to save SGI movies using Cosmo hardware SGI
must be defined on your machine. |
|
|
int (if prototype is empty)
|
oldMapValue(value=None)
Get/set specify old map value in frames. |
|
|
int (if prototype is empty)
|
newMapValue(value=None)
Get/set specify new map value in frames. |
|
|
RenderLayer
|
|
|
removeRenderLayer(renderlayer)
Remove the specified render layer from the rendering context. |
|
|
int
|
OSALevel
Oversampling (anti-aliasing) level.
|
int
|
activeLayer
The active render layer.
|
int
|
alphaMode
Setting for sky/background.
|
int
|
aspectX
Horizontal aspect ratio.
|
int
|
aspectY
Vertical aspect ratio.
|
boolean
|
backbuf
Backbuffer image enabled.
|
string
|
backbufPath
Path to a background image (setting loads image).
|
float
|
bakeBias
The distance in blender units to bias faces further away from the
object.
|
bool
|
bakeClear
When enabled, baking clears the image first.
|
float
|
bakeDist
The distance in blender units to use when bakeToActive is enabled and
geomtry does not overlap.
|
int
|
bakeMargin
The pixel distance to extend baked pixels past the boundry (reduces
bleeding when mipmapping)
|
int
|
bakeMode
The method used when baking, see BakeModes.
|
int
|
bakeNormalSpace
The method used when baking, see BakeNormalSpaceModes.
|
bool
|
bakeNormalize
Normalize AO and displacement to the range of the distance value.
|
bool
|
bakeToActive
When enabled, selected objects are baked onto the active object.
|
list of 4 floats.
|
border
The border for border rendering.
|
boolean
|
borderRender
Small cut-out rendering enabled.
|
int
|
cFrame
The current frame for rendering.
|
boolean
|
compositeFree
Free nodes that are not used while composite.
|
boolean
|
compositor
'Do Compositor' enabled.
|
boolean
|
crop
Crop image during border renders.
|
int
|
displayMode
Render output in separate window or 3D view.
|
int
|
eFrame
Ending frame for rendering.
|
list of 3 RGB floats
|
edgeColor
RGB color triplet for edges in Toon shading (unified renderer).
|
boolean
|
environmentMap
Environment map rendering enabled.
|
boolean
|
extensions
Add extensions to output (when rendering animations).
|
boolean
|
fieldRendering
Field rendering enabled.
|
int
|
fieldTimeDisable
Time difference in field calculations disabled.
|
|
fps
Frames per second.
|
float
|
fpsBase
Frames per second base: used to generate fractional frames per second
values.
|
boolean
|
freeImages
Texture images are freed after render.
|
string
|
ftypePath
The path to Ftype file.
|
int
|
gameFrame
Game framing type.
|
list of RGB 3 floats
|
gameFrameColor
RGB color triplet for bars.
|
boolean
|
gammaCorrection
Gamma correction enabled.
|
float
|
gaussFilter
Gauss filter size.
|
bool
|
halfFloat
When enabled use 16bit floats rather then 32bit for OpenEXR files.
|
int
|
imagePlanes
Image depth in bits.
|
int
|
imageType
File format for saving images.
|
int
|
mapNew
New mapping value (in frames).
|
int
|
mapOld
Number of frames the Map Old will last Values are clamped to the
range [1,900].
|
float
|
mblurFactor
Motion blur factor.
|
bitfield
|
mode
Mode bitfield.
|
boolean
|
motionBlur
Motion blur enabled.
|
bool
|
noOverwrite
Skip rendering frames when the file exists.
|
boolean
|
oddFieldFirst
Odd field first rendering enabled.
|
boolean
|
oversampling
Oversampling (anti-aliasing) enabled.
|
boolean
|
panorama
Panorama rendering enabled.
|
bool
|
preview
When enabled, save a preview jpeg with an OpenEXR file
|
boolean
|
radiosityRender
Radiosity rendering enabled.
|
boolean
|
rayTracing
Ray tracing enabled.
|
string
|
renderPath
The path to output the rendered images.
|
int
|
renderer
Rendering engine choice.
|
int
|
renderwinSize
Size of the rendering window.
|
int
|
sFrame
Starting frame for rendering.
|
boolean
|
saveBuffers
Save render buffers to disk while rendering, saves memory.
|
bitfield
|
sceneMode
Scene mode bitfield.
|
boolean
|
sequencer
Enables sequencer output rendering.
|
BPy_Scene or None
|
set
The scene linked as a set to this scene.
|
boolean
|
shadow
Shadow calculation enabled.
|
boolean
|
singleLayer
Only render the active layer.
|
int
|
sizeX
Image width (in pixels).
|
int
|
sizeY
Image height (in pixels).
|
int
|
threads
Number of threads to render, clamed [1-8]
|
string
|
timeCode
Get the current frame in HH:MM:SS:FF format.
|
boolean
|
toonShading
Toon edge shading enabled.
|
bool
|
touch
Create an empty file before rendering it.
|
boolean
|
unified
Unified Renderer enabled.
|
int
|
xParts
Number of horizontal parts for image render.
|
int
|
yParts
Number of vertical parts for image render.
|
int [0, 64]
|
yafrayAntiAliasingPasses
Number of anti-aliasing passes (0 is no Anti-Aliasing).
|
float [1.0, 2.0]
|
yafrayAntiAliasingPixelSize
Anti-aliasing pixel filter size.
|
int [0, 2048]
|
yafrayAntiAliasingSamples
Number of samples per pass.
|
float [0.05, 1.0]
|
yafrayAntiAliasingThreshold
Anti-aliasing threshold.
|
boolean
|
yafrayAutoAntiAliasing
Automatic anti-aliasing enabled/disabled.
|
boolean
|
yafrayClampRGB
Clamp RGB enabled/disabled.
|
boolean
|
yafrayExportToXML
If true export to an xml file and call yafray instead of plugin.
|
boolean
|
yafrayGICache
Cache occlusion/irradiance samples (faster).
|
boolean
|
yafrayGICacheBumpNormals
Enable/disable bumpnormals for cache.
|
int [1, 50]
|
yafrayGICachePixelsPerSample
Maximum number of pixels without samples, the lower the better and
slower.
|
float [0.001, 1.0]
|
yafrayGICacheRefinement
Threshold to refine shadows EXPERIMENTAL.
|
float [0.01, 1.0]
|
yafrayGICacheShadowQuality
Shadow quality, keep it under 0.95 :-).
|
int {NONE (0), SKYDOME (1), GIFULL (2)}
|
yafrayGIMethod
Global Illumination method.
|
boolean
|
yafrayGIPhotons
Enable/disable use of global photons to help in GI.
|
int {NONE (0), LOW (1), MEDIUM (2), HIGH (3), HIGHER (4), BEST (5),
USEAOSETTINGS (6)}
|
yafrayGIQuality
Global Illumination quality.
|
boolean
|
yafrayGITunePhotons
If true the photonmap is shown directly in the render for tuning.
|
bool
|
zbuf
When enabled, save the zbuffer with an OpenEXR file
|