diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2005-02-09 08:19:24 +0300 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2005-02-09 08:19:24 +0300 |
commit | 05bf482f6a50bd711fc6bb7ad986919741d478ae (patch) | |
tree | 92954a8c8840ff02afec41a7b728f549dc5de6a6 /source/blender/python/api2_2x/doc/Camera.py | |
parent | 955d5aa6eb1a2d3763fd6e3d98e10357cf58fd03 (diff) |
BPython:
- NMesh: made nmesh.update accept an optional 'vertex_shade' param to init vcols with shading info, like when you enter vpaint mode or press the relevant "make" button for a mesh without vcols. This is still a test, the functionality was requested by Manuel Bastioni for the SSS script they are working on:
http://www.dedalo-3d.com/index.php?filename=SXCOL/makehuman/articles/subsurface_scattering_in_python.html
- sys: made makename() accept files with max FILE_MAXDIR+FILE_MAXFILE name length, should fix #2192. Was only FILE_MAXFILE, a mistake;
- Image: added .setFilename(), contributed by Campbell Barton;
- Camera: added camera.get/setScale for the new param added by Ton for ortho cameras. Requested by Jean-Michel Soler for the Texture Baker script;
- related doc updates.
Diffstat (limited to 'source/blender/python/api2_2x/doc/Camera.py')
-rw-r--r-- | source/blender/python/api2_2x/doc/Camera.py | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/doc/Camera.py b/source/blender/python/api2_2x/doc/Camera.py index 70c7aee2a8a..11b01d388af 100644 --- a/source/blender/python/api2_2x/doc/Camera.py +++ b/source/blender/python/api2_2x/doc/Camera.py @@ -3,7 +3,7 @@ """ The Blender.Camera submodule. -B{New}: scriptLink methods: L{Camera.getScriptLinks}, ... +B{New}: L{Camera.getScale}, L{Camera.setScale} for ortho cameras. Camera Data =========== @@ -14,7 +14,7 @@ Example:: from Blender import Camera, Object, Scene c = Camera.New('ortho') # create new ortho camera data - c.lens = 35.0 # set lens value + c.scale = 6.0 # set scale value cur = Scene.getCurrent() # get current scene ob = Object.New('Camera') # make camera object ob.link(c) # link camera data with this object @@ -52,7 +52,10 @@ class Camera: @cvar name: The Camera Data name. @cvar type: The Camera type: 'persp':0 or 'ortho':1. @cvar mode: The mode flags: B{or'ed value}: 'showLimits':1, 'showMist':2. - @cvar lens: The lens value in [1.0, 250.0]. + @cvar lens: The lens value in [1.0, 250.0], only relevant to *persp* + cameras. + @cvar scale: The scale value in [0.01, 1000.00], only relevant to *ortho* + cameras. @cvar clipStart: The clip start value in [0.0, 100.0]. @cvar clipEnd: The clip end value in [1.0, 5000.0]. @cvar drawSize: The draw size value in [0.1, 10.0]. @@ -133,6 +136,7 @@ class Camera: """ Get the lens value. @rtype: float + @warn: lens is only relevant for perspective (L{getType}) cameras. """ def setLens(lens): @@ -140,6 +144,22 @@ class Camera: Set the lens value. @type lens: float @param lens: The new lens value. + @warn: lens is only relevant for perspective (L{getType}) cameras. + """ + + def getScale(): + """ + Get the scale value. + @rtype: float + @warn: scale is only relevant for ortho (L{getType}) cameras. + """ + + def setScale(scale): + """ + Set the scale value. + @type scale: float + @param scale: The new scale value in [0.01, 1000.00]. + @warn: scale is only relevant for ortho (L{getType}) cameras. """ def getClipStart(): |