[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2334] trunk/py/scripts/addons: /trunk: Removed final points in UI strings and messages.

Bastien Montagne montagne29 at wanadoo.fr
Mon Sep 19 17:08:06 CEST 2011


Revision: 2334
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2334
Author:   mont29
Date:     2011-09-19 15:08:06 +0000 (Mon, 19 Sep 2011)
Log Message:
-----------
/trunk: Removed final points in UI strings and messages.
Plus a few styling enhancements.

Modified Paths:
--------------
    contrib/py/scripts/addons/render_copy_settings/__init__.py
    contrib/py/scripts/addons/render_copy_settings/operator.py
    trunk/py/scripts/addons/add_curve_ivygen.py
    trunk/py/scripts/addons/add_curve_torus_knots.py
    trunk/py/scripts/addons/add_mesh_BoltFactory/createMesh.py
    trunk/py/scripts/addons/add_mesh_BoltFactory/original_script_add_mesh_bolt.py
    trunk/py/scripts/addons/add_mesh_ant_landscape.py
    trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_3d_function_surface.py
    trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_extra_objects.py
    trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_gemstones.py
    trunk/py/scripts/addons/add_mesh_pipe_joint.py
    trunk/py/scripts/addons/game_engine_save_as_runtime.py
    trunk/py/scripts/addons/io_anim_bvh/__init__.py
    trunk/py/scripts/addons/io_coat3D/__init__.py
    trunk/py/scripts/addons/io_convert_image_to_mesh_img/__init__.py
    trunk/py/scripts/addons/io_export_directx_x.py
    trunk/py/scripts/addons/io_export_unreal_psk_psa.py
    trunk/py/scripts/addons/io_import_images_as_planes.py
    trunk/py/scripts/addons/io_import_scene_lwo.py
    trunk/py/scripts/addons/io_import_scene_mhx.py
    trunk/py/scripts/addons/io_import_scene_unreal_psk.py
    trunk/py/scripts/addons/io_mesh_raw/__init__.py
    trunk/py/scripts/addons/io_scene_3ds/__init__.py
    trunk/py/scripts/addons/io_scene_fbx/export_fbx.py
    trunk/py/scripts/addons/io_scene_obj/__init__.py
    trunk/py/scripts/addons/mesh_bsurfaces.py
    trunk/py/scripts/addons/mesh_looptools.py
    trunk/py/scripts/addons/object_cloud_gen.py
    trunk/py/scripts/addons/object_fracture/fracture_ops.py
    trunk/py/scripts/addons/render_povray/__init__.py
    trunk/py/scripts/addons/render_povray/update_files.py
    trunk/py/scripts/addons/render_renderfarmfi.py
    trunk/py/scripts/addons/rigify/__init__.py
    trunk/py/scripts/addons/rigify/rigs/basic/copy.py
    trunk/py/scripts/addons/rigify/rigs/basic/copy_chain.py
    trunk/py/scripts/addons/rigify/rigs/biped/arm/__init__.py
    trunk/py/scripts/addons/rigify/rigs/biped/arm/deform.py
    trunk/py/scripts/addons/rigify/rigs/biped/arm/fk.py
    trunk/py/scripts/addons/rigify/rigs/biped/arm/ik.py
    trunk/py/scripts/addons/rigify/rigs/biped/leg/__init__.py
    trunk/py/scripts/addons/rigify/rigs/biped/leg/deform.py
    trunk/py/scripts/addons/rigify/rigs/biped/leg/fk.py
    trunk/py/scripts/addons/rigify/rigs/biped/leg/ik.py
    trunk/py/scripts/addons/rigify/rigs/finger.py
    trunk/py/scripts/addons/rigify/rigs/misc/delta.py
    trunk/py/scripts/addons/rigify/rigs/neck_short.py
    trunk/py/scripts/addons/rigify/rigs/palm.py
    trunk/py/scripts/addons/rigify/rigs/spine.py
    trunk/py/scripts/addons/rigify/utils.py
    trunk/py/scripts/addons/space_view3d_panel_measure.py
    trunk/py/scripts/addons/space_view3d_screencast_keys.py
    trunk/py/scripts/addons/space_view3d_spacebar_menu.py
    trunk/py/scripts/addons/system_blend_info.py
    trunk/py/scripts/addons/system_demo_mode/__init__.py
    trunk/py/scripts/addons/system_property_chart.py

Modified: contrib/py/scripts/addons/render_copy_settings/__init__.py
===================================================================
--- contrib/py/scripts/addons/render_copy_settings/__init__.py	2011-09-19 13:03:43 UTC (rev 2333)
+++ contrib/py/scripts/addons/render_copy_settings/__init__.py	2011-09-19 15:08:06 UTC (rev 2334)
@@ -87,11 +87,6 @@
 from bpy.props import StringProperty, BoolProperty, IntProperty, CollectionProperty
 
 
-# XXX This should be somehow a BPY-wide class…
-class TemplateListControl(bpy.types.PropertyGroup):
-    identifier = StringProperty()
-
-
 ####################################################################################################
 # Global properties for the script, for UI (as there’s no way to let them in the operator…).
 ####################################################################################################
@@ -99,37 +94,19 @@
 class RenderCopySettingsScene(bpy.types.PropertyGroup):
     allowed = BoolProperty(default=True)
 
-    # A collection of identifiers (as strings) which property’s controls should be displayed
+    # A string of identifiers (colon delimited) which property’s controls should be displayed
     # in a template_list.
-    # XXX: The initialization of this collection is done via a dedicated
-    #      init_TemplateListControls() func.
-    #      This isn’t really nice, but there seems to be no ways to specify a default set of
-    #      items for a collection. User has to define and call this func manually…
-    #      There should be a way to automatize all this, but I’m not skilled enough with BPY
-    #      to figure it (seems inheritance and/or __init__ and/or __new__ don’t work here…).
-    template_list_controls = CollectionProperty(type=TemplateListControl, options={"HIDDEN"})
+    template_list_controls = StringProperty(default="allowed", options={"HIDDEN"})
 
-    def init_TemplateListControls(self):
-        self.template_list_controls.add().identifier = "allowed"
 
-
 class RenderCopySettingsSetting(bpy.types.PropertyGroup):
     copy = BoolProperty(default=False)
 
-    # A collection of identifiers (as strings) which property’s controls should be displayed
+    # A string of identifiers (colon delimited) which property’s controls should be displayed
     # in a template_list.
-    # XXX: The initialization of this collection is done via a dedicated
-    #      init_TemplateListControls() func.
-    #      This isn’t really nice, but there seems to be no ways to specify a default set of
-    #      items for a collection. User has to define and call this func manually…
-    #      There should be a way to automatize all this, but I’m not skilled enough with BPY
-    #      to figure it (seems inheritance and/or __init__ and/or __new__ don’t work here…).
-    template_list_controls = CollectionProperty(type=TemplateListControl, options={"HIDDEN"})
+    template_list_controls = StringProperty(default="copy", options={"HIDDEN"})
 
-    def init_TemplateListControls(self):
-        self.template_list_controls.add().identifier = "copy"
 
-
 class RenderCopySettings(bpy.types.PropertyGroup):
     # XXX: The consistency of this collection is delegated to the UI code.
     #      It should only contain one element for each render setting.
@@ -154,7 +131,6 @@
 
 def register():
     # Register properties.
-    bpy.utils.register_class(TemplateListControl)
     bpy.utils.register_class(RenderCopySettingsScene)
     bpy.utils.register_class(RenderCopySettingsSetting)
     bpy.utils.register_class(RenderCopySettings)
@@ -166,7 +142,6 @@
 
 def unregister():
     # Unregister properties.
-    bpy.utils.unregister_class(TemplateListControl)
     bpy.utils.unregister_class(RenderCopySettingsScene)
     bpy.utils.unregister_class(RenderCopySettingsSetting)
     bpy.utils.unregister_class(RenderCopySettings)

Modified: contrib/py/scripts/addons/render_copy_settings/operator.py
===================================================================
--- contrib/py/scripts/addons/render_copy_settings/operator.py	2011-09-19 13:03:43 UTC (rev 2333)
+++ contrib/py/scripts/addons/render_copy_settings/operator.py	2011-09-19 15:08:06 UTC (rev 2334)
@@ -78,7 +78,7 @@
         for prop in props:
             sett = cp_sett.affected_settings.add()
             sett.name = prop
-            sett.init_TemplateListControls()
+#            sett.init_TemplateListControls()
         collection_property_sort(cp_sett.affected_settings, "name")
 
         # Get all available scenes, and update accordingly allowed_scenes…
@@ -113,7 +113,7 @@
         for scene in scenes:
             sett = cp_sett.allowed_scenes.add()
             sett.name = scene
-            sett.init_TemplateListControls()
+#            sett.init_TemplateListControls()
         collection_property_sort(cp_sett.allowed_scenes, "name")
 
         return {'FINISHED'}
@@ -229,8 +229,7 @@
         cp_sett = context.scene.render_copy_settings
         affected_settings = set([sett.name for sett in cp_sett.affected_settings if sett.copy])
         allowed_scenes = set([sce.name for sce in cp_sett.allowed_scenes if sce.allowed])
-        do_copy(context, affected_settings=affected_settings,
-                allowed_scenes=allowed_scenes)
+        do_copy(context, affected_settings=affected_settings, allowed_scenes=allowed_scenes)
         return {'FINISHED'}
 
 

Modified: trunk/py/scripts/addons/add_curve_ivygen.py
===================================================================
--- trunk/py/scripts/addons/add_curve_ivygen.py	2011-09-19 13:03:43 UTC (rev 2333)
+++ trunk/py/scripts/addons/add_curve_ivygen.py	2011-09-19 15:08:06 UTC (rev 2334)
@@ -26,7 +26,7 @@
     "api": 39307,
     "location": "View3D > Add > Curve",
     "description": "Adds generated ivy to a mesh object starting at the 3D"\
-                   " cursor.",
+                   " cursor",
     "warning": "",
     "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/"\
                 "Scripts/Curve/Ivy_Gen",
@@ -448,45 +448,45 @@
     bl_options = {'REGISTER', 'UNDO'}
 
     maxIvyLength = FloatProperty(name="Max Ivy Length",
-                    description="Maximum ivy length in Blender Units.",
+                    description="Maximum ivy length in Blender Units",
                     default=1.0,
                     min=0.0,
                     soft_max=3.0,
                     subtype='DISTANCE',
                     unit='LENGTH')
     primaryWeight = FloatProperty(name="Primary Weight",
-                    description="Weighting given to the current direction.",
+                    description="Weighting given to the current direction",
                     default=0.5,
                     min=0.0,
                     soft_max=1.0)
     randomWeight = FloatProperty(name="Random Weight",
-                    description="Weighting given to the random direction.",
+                    description="Weighting given to the random direction",
                     default=0.2,
                     min=0.0,
                     soft_max=1.0)
     gravityWeight = FloatProperty(name="Gravity Weight",
-                    description="Weighting given to the gravity direction.",
+                    description="Weighting given to the gravity direction",
                     default=1.0,
                     min=0.0,
                     soft_max=1.0)
     adhesionWeight = FloatProperty(name="Adhesion Weight",
-                    description="Weighting given to the adhesion direction.",
+                    description="Weighting given to the adhesion direction",
                     default=0.1,
                     min=0.0,
                     soft_max=1.0)
     branchingProbability = FloatProperty(name="Branching Probability",
-                    description="Probability of a new branch forming.",
+                    description="Probability of a new branch forming",
                     default=0.05,
                     min=0.0,
                     soft_max=1.0)
     leafProbability = FloatProperty(name="Leaf Probability",
-                    description="Probability of a leaf forming.",
+                    description="Probability of a leaf forming",
                     default=0.35,
                     min=0.0,
                     soft_max=1.0)
     ivySize = FloatProperty(name="Ivy Size",
                     description=("The length of an ivy segment in Blender"
-                                 " Units."),
+                                 " Units"),
                     default=0.02,
                     min=0.0,
                     soft_max=1.0,
@@ -505,19 +505,19 @@
                     precision=4)
     maxFloatLength = FloatProperty(name="Max Float Length",
                     description=("The maximum distance that a branch "
-                                 "can live while floating."),
+                                 "can live while floating"),
                     default=0.5,
                     min=0.0,
                     soft_max=1.0)
     maxAdhesionDistance = FloatProperty(name="Max Adhesion Length",
                     description=("The maximum distance that a branch "
-                                 "will feel the effects of adhesion."),
+                                 "will feel the effects of adhesion"),
                     default=1.0,
                     min=0.0,
                     soft_max=2.0,
                     precision=2)
     randomSeed = IntProperty(name="Random Seed",
-                    description="The seed governing random generation.",
+                    description="The seed governing random generation",
                     default=0,
                     min=0)
     maxTime = FloatProperty(name="Maximum Time",
@@ -527,7 +527,7 @@
                     min=0.0,
                     soft_max=10)
     growLeaves = BoolProperty(name="Grow Leaves",
-                    description="Grow leaves or not.",
+                    description="Grow leaves or not",
                     default=True)
     updateIvy = BoolProperty(name="Update Ivy", default=False)
 

Modified: trunk/py/scripts/addons/add_curve_torus_knots.py
===================================================================
--- trunk/py/scripts/addons/add_curve_torus_knots.py	2011-09-19 13:03:43 UTC (rev 2333)
+++ trunk/py/scripts/addons/add_curve_torus_knots.py	2011-09-19 15:08:06 UTC (rev 2334)
@@ -107,7 +107,7 @@

@@ Diff output truncated at 10240 characters. @@


More information about the Bf-extensions-cvs mailing list