Skip to content

Commit

Permalink
removing version info & general clean up
Browse files Browse the repository at this point in the history
version info is now located on the wiki page for the script/s
  • Loading branch information
meta-androcto committed Oct 10, 2011
1 parent 4944da5 commit 3e0c882
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 190 deletions.
89 changes: 3 additions & 86 deletions add_mesh_extra_objects/add_mesh_3d_function_surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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:https://gitorious.org/blender-scripts/blender-3d-function-surface
http:https://blenderartists.org/forum/showthread.php?t=179043
"""
'''

import bpy
from mathutils import *
from math import *
Expand Down
3 changes: 0 additions & 3 deletions add_mesh_extra_objects/add_mesh_extra_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,3 @@ def execute(self,context):
obj = create_mesh_object(context, verts, [], faces, "Trapazohedron")

return {'FINISHED'}



35 changes: 2 additions & 33 deletions add_mesh_extra_objects/add_mesh_gears.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand All @@ -33,37 +33,7 @@
"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 *
Expand Down Expand Up @@ -798,4 +768,3 @@ def execute(self, context):
valleyGroup.add(verts_valley, 1.0, 'ADD')

return {'FINISHED'}

5 changes: 2 additions & 3 deletions add_mesh_extra_objects/add_mesh_gemstones.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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 *
Expand Down Expand Up @@ -328,4 +328,3 @@ def execute(self, context):
obj = create_mesh_object(context, verts, [], faces, "Gem")

return {'FINISHED'}

44 changes: 0 additions & 44 deletions add_mesh_extra_objects/add_mesh_polysphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,32 +30,6 @@
"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:https://blenderartists.org/forum/showthread.php?t=205444
http:https://www.metalliandy.com
Thanks to:-
Dealga McArdle (zeffii) - http:https://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

Expand Down Expand Up @@ -113,21 +87,3 @@ class AddPolySphere(bpy.types.Operator):
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()
'''
22 changes: 1 addition & 21 deletions add_mesh_extra_objects/add_mesh_pyramid.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,13 @@
'description': 'Create an egyption-style step pyramid',
'warning': '', # used for warning icon and text in addons panel
'category': 'Add Mesh'}
'''

import bpy
from bpy.props import FloatVectorProperty, IntProperty, FloatProperty
from add_utils import AddObjectHelper, add_object_data
from mathutils import Vector


def makePyramid( initialSize, stepHeight, stepWidth, numberSteps ):

vertList = []
Expand Down Expand Up @@ -107,7 +105,6 @@ def add_pyramid_object( self, context ):
res = add_object_data( context, mesh_data, operator=self )



class OBJECT_OT_add_pyramid(bpy.types.Operator, AddObjectHelper):
"""Add a Mesh Object"""
bl_idname = "mesh.primative_step_pyramid_add"
Expand All @@ -124,20 +121,3 @@ class OBJECT_OT_add_pyramid(bpy.types.Operator, AddObjectHelper):
def execute(self, context):
add_pyramid_object(self, context)
return {'FINISHED'}

'''
def menu_func(self, context):
self.layout.operator(OBJECT_OT_add_pyramid.bl_idname, text="Pyramid", icon="MESH_CUBE")
def register():
bpy.utils.register_class(OBJECT_OT_add_pyramid)
bpy.types.INFO_MT_mesh_add.append(menu_func)
def unregister():
bpy.utils.unregister_class(OBJECT_OT_add_pyramid)
bpy.types.INFO_MT_mesh_add.remove(menu_func)
if __name__ == "__main__":
register()
'''

0 comments on commit 3e0c882

Please sign in to comment.