diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-06-17 00:20:07 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-06-17 00:20:07 +0400 |
commit | b5b830668560a7733ddd3609ba96e845aa63546b (patch) | |
tree | 25a45fbef93150882ec237884f0c22d242d09986 /doc | |
parent | e6a43441b91c9a462acf2280ff30c4c1f3167829 (diff) |
code cleanup: includes, also correct some py example typos
Diffstat (limited to 'doc')
-rw-r--r-- | doc/python_api/examples/bpy.types.Object.py | 8 | ||||
-rw-r--r-- | doc/python_api/examples/bpy.types.Panel.1.py | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/doc/python_api/examples/bpy.types.Object.py b/doc/python_api/examples/bpy.types.Object.py index 5301797aae2..2ddce248a5b 100644 --- a/doc/python_api/examples/bpy.types.Object.py +++ b/doc/python_api/examples/bpy.types.Object.py @@ -2,7 +2,7 @@ Basic Object Operations Example +++++++++++++++++++++++++++++++ This script demonstrates basic operations on object like creating new -object, placing it into scene, selecting it and making it active +object, placing it into scene, selecting it and making it active. """ import bpy @@ -11,15 +11,15 @@ from mathutils import Matrix scene = bpy.context.scene # Create new lamp datablock -lamp_data = bpy.data.lamps.new(name="New Lamp", type="POINT") +lamp_data = bpy.data.lamps.new(name="New Lamp", type='POINT') -# Create new object with out lamp datablock +# Create new object with our lamp datablock lamp_object = bpy.data.objects.new(name="New Lamp", object_data=lamp_data) # Link lamp object to the scene so it'll appear in this scene scene.objects.link(lamp_object) -# Place lamp to specified location +# Place lamp to a specified location lamp_object.location = (5.0, 5.0, 5.0) # And finally select it make active diff --git a/doc/python_api/examples/bpy.types.Panel.1.py b/doc/python_api/examples/bpy.types.Panel.1.py index cd85d30cea0..fbcdae8baeb 100644 --- a/doc/python_api/examples/bpy.types.Panel.1.py +++ b/doc/python_api/examples/bpy.types.Panel.1.py @@ -2,7 +2,7 @@ Simple Object Panel +++++++++++++++++++ This panel has a :class:`Panel.poll` and :class:`Panel.draw_header` function, -even though the contents is basic this closely resemples blenders panels. +even though the contents is basic this closely resembles blenders panels. """ import bpy |