Kent Mein pointed out some embarrasing syntax errors in example. Corrected those.
authorNathan Letwory <nathan@letworyinteractive.com>
Wed, 21 Jul 2004 17:25:50 +0000 (17:25 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Wed, 21 Jul 2004 17:25:50 +0000 (17:25 +0000)
source/blender/python/api2_2x/doc/Camera.py

index 803d8ad025dfff1ffe23cf6edf714e9c89b95a5a..70c7aee2a8a3a864f0066087a082d4c51e97c06d 100644 (file)
@@ -13,13 +13,13 @@ This module provides access to B{Camera Data} objects in Blender.
 Example::
 
   from Blender import Camera, Object, Scene
-  c = Camera.New('ortho').    # create new ortho camera data
+  c = Camera.New('ortho')     # create new ortho camera data
   c.lens = 35.0               # set lens value
-  cur = Scene.getCurrent().   # get current scene
-  ob = Object.New('Camera').  # make camera object
-  ob.link(c).                 # link camera data with this object
-  cur.link(ob).               # link object into scene
-  cur.setCurrentCamera(ob).   # make this camera the active";
+  cur = Scene.getCurrent()    # get current scene
+  ob = Object.New('Camera')   # make camera object
+  ob.link(c)                  # link camera data with this object
+  cur.link(ob)                # link object into scene
+  cur.setCurrentCamera(ob)    # make this camera the active"
 """
 
 def New (type = 'persp', name = 'CamData'):