Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Hughes <khughes@pacific.edu>2007-10-26 23:53:55 +0400
committerKen Hughes <khughes@pacific.edu>2007-10-26 23:53:55 +0400
commit135b16662d499c251bd4b3cf0c048f49778090a8 (patch)
treefc5f88087f06f83c18287fb2bbeee9c6ac42dbf3 /source/blender/python/api2_2x
parent2a2453d3e20e662d5af05b359a71458fa8daabf1 (diff)
Python API
---------- Document Peter's fps_base attribute for scene rendering objects; also remove framesPerSecBase() method (preference is to add only attributes, and he did add fps_base attribute).
Diffstat (limited to 'source/blender/python/api2_2x')
-rw-r--r--source/blender/python/api2_2x/doc/Render.py6
-rw-r--r--source/blender/python/api2_2x/sceneRender.c8
2 files changed, 5 insertions, 9 deletions
diff --git a/source/blender/python/api2_2x/doc/Render.py b/source/blender/python/api2_2x/doc/Render.py
index 70ac308768b..61c8eda9026 100644
--- a/source/blender/python/api2_2x/doc/Render.py
+++ b/source/blender/python/api2_2x/doc/Render.py
@@ -293,7 +293,11 @@ class RenderData:
@type oversampling: boolean
@ivar fps: Frames per second.
Values are clamped to the range [1,120].
- @type fps: int
+ @ivar fps_base: Frames per second base: used to generate fractional frames
+ per second values. For example, setting fps to 30 and fps_base to 1.001
+ will approximate the NTSC frame rate of 29.97 fps.
+ Values are clamped to the range [1,120].
+ @type fps_base: float
@ivar timeCode: Get the current frame in HH:MM:SS:FF format. Read-only.
@type timeCode: string
@ivar environmentMap: Environment map rendering enabled.
diff --git a/source/blender/python/api2_2x/sceneRender.c b/source/blender/python/api2_2x/sceneRender.c
index 05d9b005b5f..187df27e79a 100644
--- a/source/blender/python/api2_2x/sceneRender.c
+++ b/source/blender/python/api2_2x/sceneRender.c
@@ -1025,12 +1025,6 @@ PyObject *RenderData_FramesPerSec( BPy_RenderData * self, PyObject * args )
120 );
}
-PyObject *RenderData_FramesPerSecBase( BPy_RenderData * self, PyObject * args )
-{
- return M_Render_GetSetAttributeFloat(
- args, &self->renderContext->frs_sec_base, 1.0f, 120.0f );
-}
-
PyObject *RenderData_EnableGrayscale( BPy_RenderData * self )
{
self->renderContext->planes = R_PLANESBW;
@@ -2818,8 +2812,6 @@ static PyMethodDef BPy_RenderData_methods[] = {
"(int) - get/set quality get/setting for JPEG images, AVI Jpeg and SGI movies"},
{"framesPerSec", ( PyCFunction ) RenderData_FramesPerSec, METH_VARARGS,
"(int) - get/set frames per second"},
- {"framesPerSecBase", ( PyCFunction ) RenderData_FramesPerSecBase, METH_VARARGS,
- "(float) - get/set frames per second base"},
{"enableGrayscale", ( PyCFunction ) RenderData_EnableGrayscale,
METH_NOARGS,
"() - images are saved with BW (grayscale) data"},