[Bf-extensions-cvs] [7c3dade] master: Cleanup: docstrings, property definitions

Campbell Barton noreply at git.blender.org
Tue Jul 26 11:11:47 CEST 2016


Commit: 7c3dade34ee72e35145417c33867717ac5c6f1e4
Author: Campbell Barton
Date:   Tue Jul 26 19:12:06 2016 +1000
Branches: master
https://developer.blender.org/rBAC7c3dade34ee72e35145417c33867717ac5c6f1e4

Cleanup: docstrings, property definitions

===================================================================

M	archimesh/__init__.py
M	archimesh/achm_books_maker.py
M	archimesh/achm_column_maker.py
M	archimesh/achm_curtain_maker.py
M	archimesh/achm_door_maker.py
M	archimesh/achm_gltools.py
M	archimesh/achm_kitchen_maker.py
M	archimesh/achm_lamp_maker.py
M	archimesh/achm_roof_maker.py
M	archimesh/achm_room_maker.py
M	archimesh/achm_shelves_maker.py
M	archimesh/achm_stairs_maker.py
M	archimesh/achm_venetian_maker.py
M	archimesh/achm_window_maker.py
M	archimesh/achm_window_panel.py

===================================================================

diff --git a/archimesh/__init__.py b/archimesh/__init__.py
index 69b9537..6fab5c1 100644
--- a/archimesh/__init__.py
+++ b/archimesh/__init__.py
@@ -177,58 +177,77 @@ def register():
     bpy.types.INFO_MT_mesh_add.append(AchmMenu_func)
 
     # Define properties
-    bpy.types.Scene.archimesh_select_only = bpy.props.BoolProperty(name="Only selected",
-                                                                   description="Apply auto holes only to"
-                                                                               " selected objects",
-                                                                   default=False)
-    bpy.types.Scene.archimesh_ceiling = bpy.props.BoolProperty(name="Ceiling",
-                                                               description="Create a ceiling.",
-                                                               default=False)
-    bpy.types.Scene.archimesh_floor = bpy.props.BoolProperty(name="Floor",
-                                                             description="Create a floor automatically.",
-                                                             default=False)
+    bpy.types.Scene.archimesh_select_only = bpy.props.BoolProperty(
+            name="Only selected",
+            description="Apply auto holes only to selected objects",
+            default=False,
+            )
+    bpy.types.Scene.archimesh_ceiling = bpy.props.BoolProperty(
+            name="Ceiling",
+            description="Create a ceiling",
+            default=False,
+            )
+    bpy.types.Scene.archimesh_floor = bpy.props.BoolProperty(
+            name="Floor",
+            description="Create a floor automatically",
+            default=False,
+            )
 
-    bpy.types.Scene.archimesh_merge = bpy.props.BoolProperty(name="Close walls",
-                                                             description="Close walls to create a full closed room.",
-                                                             default=False)
+    bpy.types.Scene.archimesh_merge = bpy.props.BoolProperty(
+            name="Close walls",
+            description="Close walls to create a full closed room",
+            default=False,
+            )
 
     bpy.types.Scene.archimesh_text_color = bpy.props.FloatVectorProperty(
-        name="Hint color",
-        description="Color for the text and lines",
-        default=(0.173, 0.545, 1.0, 1.0),
-        min=0.1,
-        max=1,
-        subtype='COLOR',
-        size=4)
+            name="Hint color",
+            description="Color for the text and lines",
+            default=(0.173, 0.545, 1.0, 1.0),
+            min=0.1,
+            max=1,
+            subtype='COLOR',
+            size=4,
+            )
     bpy.types.Scene.archimesh_walltext_color = bpy.props.FloatVectorProperty(
-        name="Hint color",
-        description="Color for the wall label",
-        default=(1, 0.8, 0.1, 1.0),
-        min=0.1,
-        max=1,
-        subtype='COLOR',
-        size=4)
+            name="Hint color",
+            description="Color for the wall label",
+            default=(1, 0.8, 0.1, 1.0),
+            min=0.1,
+            max=1,
+            subtype='COLOR',
+            size=4,
+            )
     bpy.types.Scene.archimesh_font_size = bpy.props.IntProperty(
-        name="Text Size",
-        description="Text size for hints",
-        default=14, min=10, max=150)
+            name="Text Size",
+            description="Text size for hints",
+            default=14, min=10, max=150,
+            )
     bpy.types.Scene.archimesh_wfont_size = bpy.props.IntProperty(
-        name="Text Size",
-        description="Text size for wall labels",
-        default=16, min=10, max=150)
-    bpy.types.Scene.archimesh_hint_space = bpy.props.FloatProperty(name='Separation', min=0, max=5, default=0.1,
-                                                                   precision=2,
-                                                                   description='Distance from object to display hint')
-    bpy.types.Scene.archimesh_gl_measure = bpy.props.BoolProperty(name="Measures",
-                                                                  description="Display measures",
-                                                                  default=True)
-    bpy.types.Scene.archimesh_gl_name = bpy.props.BoolProperty(name="Names",
-                                                               description="Display names",
-                                                               default=True)
-    bpy.types.Scene.archimesh_gl_ghost = bpy.props.BoolProperty(name="All",
-                                                                description="Display measures for all objects,"
-                                                                            " not only selected",
-                                                                default=True)
+            name="Text Size",
+            description="Text size for wall labels",
+            default=16, min=10, max=150,
+            )
+    bpy.types.Scene.archimesh_hint_space = bpy.props.FloatProperty(
+            name='Separation', min=0, max=5, default=0.1,
+            precision=2,
+            description='Distance from object to display hint',
+            )
+    bpy.types.Scene.archimesh_gl_measure = bpy.props.BoolProperty(
+            name="Measures",
+            description="Display measures",
+            default=True,
+            )
+    bpy.types.Scene.archimesh_gl_name = bpy.props.BoolProperty(
+            name="Names",
+            description="Display names",
+            default=True,
+            )
+    bpy.types.Scene.archimesh_gl_ghost = bpy.props.BoolProperty(
+            name="All",
+            description="Display measures for all objects,"
+            " not only selected",
+            default=True,
+            )
 
     # OpenGL flag
     wm = bpy.types.WindowManager
diff --git a/archimesh/achm_books_maker.py b/archimesh/achm_books_maker.py
index eccae4c..1d0f47e 100644
--- a/archimesh/achm_books_maker.py
+++ b/archimesh/achm_books_maker.py
@@ -43,40 +43,64 @@ class AchmBooks(bpy.types.Operator):
     bl_category = 'Archimesh'
     bl_options = {'REGISTER', 'UNDO'}
 
-    width = bpy.props.FloatProperty(name='Width', min=0.001, max=1, default=0.045, precision=3,
-                                    description='Bounding book width')
-    depth = bpy.props.FloatProperty(name='Depth', min=0.001, max=1, default=0.22, precision=3,
-                                    description='Bounding book depth')
-    height = bpy.props.FloatProperty(name='Height', min=0.001, max=1, default=0.30, precision=3,
-                                     description='Bounding book height')
-    num = bpy.props.IntProperty(name='Number of books', min=1, max=100, default=20,
-                                description='Number total of books')
-
-    rX = bpy.props.FloatProperty(name='X', min=0.000, max=0.999, default=0, precision=3,
-                                 description='Randomness for X axis')
-    rY = bpy.props.FloatProperty(name='Y', min=0.000, max=0.999, default=0, precision=3,
-                                 description='Randomness for Y axis')
-    rZ = bpy.props.FloatProperty(name='Z', min=0.000, max=0.999, default=0, precision=3,
-                                 description='Randomness for Z axis')
-
-    rot = bpy.props.FloatProperty(name='Rotation', min=0.000, max=1, default=0, precision=3,
-                                  description='Randomness for vertical position '
-                                              '(0-> All straight)')
-    afn = bpy.props.IntProperty(name='Affinity', min=0, max=10, default=5,
-                                description='Number of books with same rotation angle')
+    width = bpy.props.FloatProperty(
+            name='Width', min=0.001, max=1, default=0.045, precision=3,
+            description='Bounding book width',
+            )
+    depth = bpy.props.FloatProperty(
+            name='Depth', min=0.001, max=1, default=0.22, precision=3,
+            description='Bounding book depth',
+            )
+    height = bpy.props.FloatProperty(
+            name='Height', min=0.001, max=1, default=0.30, precision=3,
+            description='Bounding book height',
+            )
+    num = bpy.props.IntProperty(
+            name='Number of books', min=1, max=100, default=20,
+            description='Number total of books',
+            )
+
+    rX = bpy.props.FloatProperty(
+            name='X', min=0.000, max=0.999, default=0, precision=3,
+            description='Randomness for X axis',
+            )
+    rY = bpy.props.FloatProperty(
+            name='Y', min=0.000, max=0.999, default=0, precision=3,
+            description='Randomness for Y axis',
+            )
+    rZ = bpy.props.FloatProperty(
+            name='Z', min=0.000, max=0.999, default=0, precision=3,
+            description='Randomness for Z axis',
+            )
+
+    rot = bpy.props.FloatProperty(
+            name='Rotation', min=0.000, max=1, default=0, precision=3,
+            description='Randomness for vertical position (0-> All straight)',
+            )
+    afn = bpy.props.IntProperty(
+            name='Affinity', min=0, max=10, default=5,
+            description='Number of books with same rotation angle',
+            )
 
     # Materials
-    crt_mat = bpy.props.BoolProperty(name="Create default Cycles materials",
-                                     description="Create default materials for "
-                                                 "Cycles render.", default=True)
-    objcol = bpy.props.FloatVectorProperty(name="Color",
-                                           description="Color for material",
-                                           default=(1.0, 1.0, 1.0, 1.0),
-                                           min=0.1, max=1,
-                                           subtype='COLOR',
-                                           size=4)
-    rC = bpy.props.FloatProperty(name='Randomness', min=0.000, max=1, default=0, precision=3,
-                                 description='Randomness for color ')
+    crt_mat 

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-extensions-cvs mailing list