diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-02-12 17:47:55 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-02-12 17:47:55 +0300 |
commit | 3974a0a3c1a19aaa2a06df1bad7f96f827088319 (patch) | |
tree | b8a139e3f896aca0eae155b4d14ca039dacafaeb /source/blender/python/api2_2x/doc | |
parent | c371346601276d9ae72ace5f4a877b42107bea78 (diff) |
Added python access for baking
http://www.blender.org/documentation/246PythonDoc/
http://www.blender.org/documentation/246PythonDoc/Render.RenderData-class.html
http://www.blender.org/documentation/246PythonDoc/bpy_api_2_46.zip
Diffstat (limited to 'source/blender/python/api2_2x/doc')
-rw-r--r-- | source/blender/python/api2_2x/doc/Render.py | 35 | ||||
-rw-r--r-- | source/blender/python/api2_2x/doc/epy_docgen-3.sh | 2 |
2 files changed, 36 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/doc/Render.py b/source/blender/python/api2_2x/doc/Render.py index 244ba3b1ee7..c26fd39cf48 100644 --- a/source/blender/python/api2_2x/doc/Render.py +++ b/source/blender/python/api2_2x/doc/Render.py @@ -74,6 +74,24 @@ attribute. One of the following modes can be active: horizontally or vertically - SCALE: Stretch or squeeze the viewport to fill the display window. +@type BakeModes: readonly dictionary +@var BakeModes: Constant dict used for with L{RenderData.bakeMode} +attribute. One of the following modes can be active: + - LIGHT: Bake lighting only. + - ALL: Bake all render lighting. + - AO: Bake ambient occlusion. + - NORMALS: Bake a normal map. + - TEXTURE: Bake textures. + - DISPLACEMENT: Bake displacement. + +@type BakeNormalSpaceModes: readonly dictionary +@var BakeNormalSpaceModes: Constant dict used for with L{RenderData.bakeNormalSpace} +attribute. One of the following modes can be active: + - CAMERA: Bake normals relative to the camera. + - WORLD: Bake normals in worldspace. + - OBJECT: Bake normals relative to the object. + - TANGENT: Bake tangent space normals. + @var INTERNAL: The internal rendering engine. Use with setRenderer() @var YAFRAY: Yafray rendering engine. Use with setRenderer() @@ -367,6 +385,18 @@ class RenderData: @type yafrayGIPhotons: boolean @ivar yafrayGITunePhotons: If true the photonmap is shown directly in the render for tuning. @type yafrayGITunePhotons: boolean + @ivar bakeMode: The method used when baking, see L{BakeModes}. + @type bakeMode: int + @ivar bakeNormalSpace: The method used when baking, see L{BakeNormalSpaceModes}. + @type bakeNormalSpace: int + @ivar bakeClear: When enabled, baking clears the image first. + @type bakeClear: bool + @ivar bakeToActive: When enabled, selected objects are baked onto the active object. + @type bakeToActive: bool + @ivar bakeMargin: The pixel distance to extend baked pixels past the boundry (reduces bleeding when mipmapping) + @type bakeMargin: int + @ivar bakeDist: The distance in blender units to use when bakeToActive is enabled and geomtry does not overlap. + @type bakeDist: float """ def currentFrame(frame = None): @@ -383,6 +413,11 @@ class RenderData: Render the scene. """ + def bake(): + """ + Bake selected objects in the scene. + """ + def renderAnim(): """ Render a series of frames to an output directory. diff --git a/source/blender/python/api2_2x/doc/epy_docgen-3.sh b/source/blender/python/api2_2x/doc/epy_docgen-3.sh index bec7653b152..ce2bdfef0f8 100644 --- a/source/blender/python/api2_2x/doc/epy_docgen-3.sh +++ b/source/blender/python/api2_2x/doc/epy_docgen-3.sh @@ -7,6 +7,6 @@ # set posix locale so regex works properly for [A-Z]*.py LC_ALL=POSIX -epydoc -o BPY_API --url "http://www.blender.org" --top API_intro \ +epydoc -v -o BPY_API --url "http://www.blender.org" --top API_intro \ --name "Blender" --no-private --no-frames \ $( ls [A-Z]*.py ) |