diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2003-07-22 04:27:03 +0400 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2003-07-22 04:27:03 +0400 |
commit | de608898659ea46b1c8dd590cfcd405dc85ccb3f (patch) | |
tree | 00ce951d22fea2bd15725325b3e26e104636aa3b /source/blender/python/api2_2x/doc/Scene.py | |
parent | 9a5cf3cb6679c111794856f038231eab1976826e (diff) |
Exppython docs:
- Updates and fixes to the documentation files, only, no code involved.
Diffstat (limited to 'source/blender/python/api2_2x/doc/Scene.py')
-rw-r--r-- | source/blender/python/api2_2x/doc/Scene.py | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/doc/Scene.py b/source/blender/python/api2_2x/doc/Scene.py index 3983735e227..d17e593ad47 100644 --- a/source/blender/python/api2_2x/doc/Scene.py +++ b/source/blender/python/api2_2x/doc/Scene.py @@ -9,7 +9,19 @@ Scene This module provides access to B{Scenes} in Blender. Example:: - + import Blender + from Blender import Scene, Object, Camera + # + camdata = Camera.New('ortho') # create new camera data + camdata.setName('newCam') + camdata.setLens(16.0) + camobj = Object.New('Camera') # create a new camera object + camobj.link(camdata) # link data to object + scene = Scene.New('NewScene') # create a new scene + scene.link(camobj) # link object to scene + scene.frameSettings(1, 100 ,1) # set start, end and current frames + scene.setWinSize(640, 480) # set the render window dimensions + scene.makeCurrent() # make this the current scene """ def New (name = 'Scene'): @@ -71,7 +83,7 @@ class Scene: """ Get the current x,y resolution of the render window. These are the dimensions of the image created by the Blender Renderer. - @rtype: list + @rtype: list of two ints @return: [width, height]. """ @@ -79,7 +91,7 @@ class Scene: """ Set the width and height of the render window. These are the dimensions of the image created by the Blender Renderer. - @type dimensions: list + @type dimensions: list of two ints @param dimensions: The new [width, height] values. """ |