From 13174df534e76c528e9d4f959eebbc6481ebf9f1 Mon Sep 17 00:00:00 2001 From: Aaron Carlisle Date: Mon, 2 Jan 2017 00:33:15 -0500 Subject: API: Fix rst syntax --- doc/python_api/rst/info_overview.rst | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'doc') diff --git a/doc/python_api/rst/info_overview.rst b/doc/python_api/rst/info_overview.rst index b4ae906277d..ba2e6949b81 100644 --- a/doc/python_api/rst/info_overview.rst +++ b/doc/python_api/rst/info_overview.rst @@ -19,7 +19,7 @@ This is a typical Python environment so tutorials on how to write Python scripts will work running the scripts in Blender too. Blender provides the :mod:`bpy` module to the Python interpreter. This module can be imported in a script and gives access to Blender data, classes, and functions. -Scripts that deal with Blender data will need to import this module. +Scripts that deal with Blender data will need to import this module. Here is a simple example of moving a vertex of the object named **Cube**: @@ -80,7 +80,7 @@ To run as modules: Add-ons ------- +------- Some of Blenders functionality is best kept optional, alongside scripts loaded at startup we have add-ons which are kept in their own directory ``scripts/addons``, @@ -213,7 +213,7 @@ A simple Blender/Python module can look like this: bpy.utils.register_class(SimpleOperator) def unregister(): - bpy.utils.unregister_class(SimpleOperator) + bpy.utils.unregister_class(SimpleOperator) if __name__ == "__main__": register() @@ -327,7 +327,7 @@ Say you want to store material settings for a custom engine. .. note:: *The class must be registered before being used in a property, failing to do so will raise an error:* - + ``ValueError: bpy_struct "Material" registration error: my_custom_props could not register`` @@ -429,4 +429,3 @@ Calling these operators: >>> bpy.ops.object.operator_2() Hello World OBJECT_OT_operator_2 {'FINISHED'} - -- cgit v1.2.3