[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2412] trunk/py/scripts/addons/ add_mesh_extra_objects: removing version info & general clean up

Brendon Murphy meta.androcto1 at gmail.com
Mon Oct 10 11:22:51 CEST 2011


Revision: 2412
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2412
Author:   meta-androcto
Date:     2011-10-10 09:22:50 +0000 (Mon, 10 Oct 2011)
Log Message:
-----------
removing version info & general clean up
version info is now located on the wiki page for the script/s

Modified Paths:
--------------
    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_gears.py
    trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_gemstones.py
    trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_polysphere.py
    trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_pyramid.py

Modified: trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_3d_function_surface.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_3d_function_surface.py	2011-10-10 05:26:52 UTC (rev 2411)
+++ trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_3d_function_surface.py	2011-10-10 09:22:50 UTC (rev 2412)
@@ -15,7 +15,7 @@
 #  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 #
 # ##### END GPL LICENSE BLOCK #####
-"""
+'''
 bl_info = {
     "name": "3D Function Surfaces",
     "author": "Buerbaum Martin (Pontiac), Elod Csirmaz",
@@ -30,91 +30,8 @@
     "tracker_url": "https://projects.blender.org/tracker/index.php?"\
         "func=detail&aid=21444",
     "category": "Add Mesh"}
-"""
-"""
-Z Function Surface
+'''
 
-This script lets the user create a surface where the z coordinate
-is a function of the x and y coordinates.
-
-    z = F1(x,y)
-
-X,Y,Z Function Surface
-
-This script lets the user create a surface where the x, y and z
-coordinates are defiend by a function.
-
-    x = F1(u,v)
-    y = F2(u,v)
-    z = F3(u,v)
-
-Usage:
-You have to activated the script in the "Add-Ons" tab (user preferences).
-The functionality can then be accessed via the
-"Add Mesh" -> "Z Function Surface"
-and
-"Add Mesh" -> "X,Y,Z Function Surface"
-menu.
-
-Version history:
-v0.3.8 - Patch by Elod Csirmaz
-    Modified the "Add X,Y,Z Function Surface" part:
-    Changed how wrapping is done to avoid
-    generating unnecessary vertices and make the result more intuitive.
-    Added helper functions the results of which can be used in
-    x(u,v), y(u,v), z(u,v).
-    The script can now close the ends of an U-wrapped surface.
-    It's now possible to create multiple objects with one set of formulae.
-v0.3.7
-    Removed the various "edit" properties - not used anymore.
-    Use generic tracker URL (Blender-Extensions r1369)
-    bl_addon_info now called bl_info
-    Removed align_matrix
-    create_mesh_object now doesn't handle editmode. (See create_mesh_object)
-    This script is now used by the "Extra Objects" script
-v0.3.6 - Various updates to match current Blender API.
-    Removed recall functionality.
-    Better code for align_matrix
-    Hopefully fixed bug where uMax was never reached. May cause other stuff.
-v0.3.5 - createFaces can now "Flip" faces and create fan/star like faces.
-v0.3.4 - Updated store_recall_properties, apply_object_align
-    and create_mesh_object.
-    Changed how recall data is stored.
-v0.3.3 - API change Mathutils -> mathutils (r557)
-v0.3.2 - Various fixes&streamlining by ideasman42/Campbell Barton.
-    r544 Compile expressions for faster execution
-    r544 Use operator reports for errors too
-    r544 Avoid type checks by converting to a float, errors
-    converting to a float are reported too.
-    Fixed an error Campbell overlooked (appending tuples to an
-    array, not single values) Thamnks for the report wild_doogy.
-    Added 'description' field, updated 'wiki_url'.
-    Made the script PEP8 compatible again.
-v0.3.1 - Use hidden "edit" property for "recall" operator.
-    Bugfix: Z Function was mixing up div_x and div_y
-v0.3 - X,Y,Z Function Surface (by Ed Mackey & tuga3d).
-    Renamed old function to "Z Function Surface".
-    Align the geometry to the view if the user preference says so.
-    Store recall properties in newly created object.
-v0.2.3 - Use bl_info for Add-On information.
-v0.2.2 - Fixed Add-On registration text.
-v0.2.1 - Fixed some new API stuff.
-    Mainly we now have the register/unregister functions.
-    Also the new() function for objects now accepts a mesh object.
-    Changed the script so it can be managed from the "Add-Ons" tab
-    in the user preferences.
-    Added dummy "PLUGIN" icon.
-    Corrected FSF address.
-    Clean up of tooltips.
-v0.2 - Added security check for eval() function
-    Check return value of eval() for complex numbers.
-v0.1.1 - Use 'CANCELLED' return value when failing.
-    Updated web links.
-v0.1 - Initial revision.
-More Links:
-http://gitorious.org/blender-scripts/blender-3d-function-surface
-http://blenderartists.org/forum/showthread.php?t=179043
-"""
 import bpy
 from mathutils import *
 from math import *

Modified: trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_extra_objects.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_extra_objects.py	2011-10-10 05:26:52 UTC (rev 2411)
+++ trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_extra_objects.py	2011-10-10 09:22:50 UTC (rev 2412)
@@ -485,6 +485,3 @@
         obj = create_mesh_object(context, verts, [], faces, "Trapazohedron")
 
         return {'FINISHED'}
-
-
-

Modified: trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_gears.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_gears.py	2011-10-10 05:26:52 UTC (rev 2411)
+++ trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_gears.py	2011-10-10 09:22:50 UTC (rev 2412)
@@ -18,7 +18,7 @@
 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 #
 # ***** END GPL LICENCE BLOCK *****
-"""
+'''
 bl_info = {
     "name": "Gears",
     "author": "Michel J. Anders (varkenvarken)",
@@ -33,38 +33,8 @@
     "tracker_url": "https://projects.blender.org/tracker/index.php?"\
         "func=detail&aid=21732",
     "category": "Add Mesh"}
-"""
+'''
 
-"""
-What was needed to port it from 2.49 -> 2.50 alpha 0?
-
-The basic functions that calculate the geometry (verts and faces) are mostly
-unchanged (add_tooth, add_spoke, add_gear)
-
-Also, the vertex group API is changed a little bit but the concepts
-are the same:
-=========
-vertexgroup = ob.vertex_groups.new('NAME_OF_VERTEXGROUP')
-vertexgroup.add(vertexgroup_vertex_indices, weight, 'ADD')
-=========
-
-Now for some reason the name does not 'stick' and we have to set it this way:
-vertexgroup.name = 'NAME_OF_VERTEXGROUP'
-
-Conversion to 2.50 also meant we could simply do away with our crude user
-interface.
-Just definining the appropriate properties in the AddGear() operator will
-display the properties in the Blender GUI with the added benefit of making
-it interactive: changing a property will redo the AddGear() operator providing
-the user with instant feedback.
-
-Finally we had to convert/throw away some print statements to print functions
-as Blender nows uses Python 3.x
-
-The code to actually implement the AddGear() function is mostly copied from
-add_mesh_torus() (distributed with Blender).
-"""
-
 import bpy
 from math import *
 from bpy.props import *
@@ -798,4 +768,3 @@
         valleyGroup.add(verts_valley, 1.0, 'ADD')
 
         return {'FINISHED'}
-

Modified: trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_gemstones.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_gemstones.py	2011-10-10 05:26:52 UTC (rev 2411)
+++ trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_gemstones.py	2011-10-10 09:22:50 UTC (rev 2412)
@@ -15,7 +15,7 @@
 #  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 #
 # ##### END GPL LICENSE BLOCK #####
-"""
+'''
 bl_info = {
     "name": "Gemstones",
     "author": "Pontiac, Fourmadmen, Dreampainter",
@@ -30,7 +30,7 @@
     "tracker_url": "https://projects.blender.org/tracker/index.php?"\
         "func=detail&aid=21432",
     "category": "Add Mesh"}
-"""
+'''
 import bpy
 from mathutils import *
 from math import *
@@ -328,4 +328,3 @@
         obj = create_mesh_object(context, verts, [], faces, "Gem")
 
         return {'FINISHED'}
-

Modified: trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_polysphere.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_polysphere.py	2011-10-10 05:26:52 UTC (rev 2411)
+++ trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_polysphere.py	2011-10-10 09:22:50 UTC (rev 2412)
@@ -30,33 +30,7 @@
     "tracker_url": "",
     "category": "Add Mesh"}
 '''    
-"""
-About this script:-
-This script enables the creation of a "PolySphere": an all quad sphere for use in sculpting and is intended to be used in place of a standard UVSphere, where the poles on would cause pinching and other unwanted artefacts.
-Apart from being all quads, the advantages are that the topology is distributed evenly across the surface and that they also use only around 80% of the geometry of a comparable resolution UV sphere.
 
-Usage:-
-Activate the script via the "Add-Ons" tab under the user preferences.
-The PolySphere can then be accessed via Add Mesh> PolySphere.
-
-
-Related Links:-
-http://blenderartists.org/forum/showthread.php?t=205444
-http://www.metalliandy.com
-
-Thanks to:-
-Dealga McArdle (zeffii) - http://www.digitalaphasia.com
-
-Version history:-
-v0.1.5 - Ammended script for compatibility with recent API changes.
-v0.1.4 - Ammended script and changed bl_info for compatibility with recent API changes.
-v0.1.3 - Ammended script for compatibility with recent API changes.
-v0.1.2 - Ammended script meta information for compatibility with recent API changes.
-v0.1.1 - Cleaned code up a little and incresed the scale of the final PolySphere to 2 units.
-v0.1 - Initial revision.
-
-"""
-
 import bpy
 
 def Add_PolySphere():
@@ -113,21 +87,3 @@
     def execute(self, context):
         Add_PolySphere()
         return {'FINISHED'}
-'''
-# Register the operator
-def menu_func(self, context):
-    self.layout.operator(AddPolySphere.bl_idname, text="PolySphere", icon='PLUGIN')
-
-
-def register():
-    bpy.utils.register_module(__name__)
-    bpy.types.INFO_MT_mesh_add.append(menu_func)
-
-
-def unregister():
-    bpy.utils.unregister_module(__name__)
-    bpy.types.INFO_MT_mesh_add.remove(menu_func)
-
-if __name__ == "__main__":
-    register()
-'''

Modified: trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_pyramid.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_pyramid.py	2011-10-10 05:26:52 UTC (rev 2411)
+++ trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_pyramid.py	2011-10-10 09:22:50 UTC (rev 2412)
@@ -29,15 +29,13 @@
     'description': 'Create an egyption-style step pyramid',

@@ Diff output truncated at 10240 characters. @@


More information about the Bf-extensions-cvs mailing list