Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrendon Murphy <meta.androcto1@gmail.com>2011-10-10 13:22:50 +0400
committerBrendon Murphy <meta.androcto1@gmail.com>2011-10-10 13:22:50 +0400
commit3e0c882f06b73726ff7c764ca9c78c010306a9eb (patch)
tree392068179fa611a8d30d6b7662e5dbd7e99f821e /add_mesh_extra_objects
parent4944da5e4b891895dcba7ee8beb97f56e954e642 (diff)
removing version info & general clean up
version info is now located on the wiki page for the script/s
Diffstat (limited to 'add_mesh_extra_objects')
-rw-r--r--add_mesh_extra_objects/add_mesh_3d_function_surface.py89
-rw-r--r--add_mesh_extra_objects/add_mesh_extra_objects.py3
-rw-r--r--add_mesh_extra_objects/add_mesh_gears.py35
-rw-r--r--add_mesh_extra_objects/add_mesh_gemstones.py5
-rw-r--r--add_mesh_extra_objects/add_mesh_polysphere.py44
-rw-r--r--add_mesh_extra_objects/add_mesh_pyramid.py22
6 files changed, 8 insertions, 190 deletions
diff --git a/add_mesh_extra_objects/add_mesh_3d_function_surface.py b/add_mesh_extra_objects/add_mesh_3d_function_surface.py
index 01560311..fad7cb5d 100644
--- a/add_mesh_extra_objects/add_mesh_3d_function_surface.py
+++ b/add_mesh_extra_objects/add_mesh_3d_function_surface.py
@@ -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 @@ bl_info = {
"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 *
diff --git a/add_mesh_extra_objects/add_mesh_extra_objects.py b/add_mesh_extra_objects/add_mesh_extra_objects.py
index a90b7224..785a7754 100644
--- a/add_mesh_extra_objects/add_mesh_extra_objects.py
+++ b/add_mesh_extra_objects/add_mesh_extra_objects.py
@@ -485,6 +485,3 @@ class AddTrapezohedron(bpy.types.Operator):
obj = create_mesh_object(context, verts, [], faces, "Trapazohedron")
return {'FINISHED'}
-
-
-
diff --git a/add_mesh_extra_objects/add_mesh_gears.py b/add_mesh_extra_objects/add_mesh_gears.py
index d43be1aa..dcd3d931 100644
--- a/add_mesh_extra_objects/add_mesh_gears.py
+++ b/add_mesh_extra_objects/add_mesh_gears.py
@@ -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,37 +33,7 @@ bl_info = {
"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 *
@@ -798,4 +768,3 @@ class AddWormGear(bpy.types.Operator):
valleyGroup.add(verts_valley, 1.0, 'ADD')
return {'FINISHED'}
-
diff --git a/add_mesh_extra_objects/add_mesh_gemstones.py b/add_mesh_extra_objects/add_mesh_gemstones.py
index 481ca8b5..63c7b6ef 100644
--- a/add_mesh_extra_objects/add_mesh_gemstones.py
+++ b/add_mesh_extra_objects/add_mesh_gemstones.py
@@ -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 @@ bl_info = {
"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 @@ class AddGem(bpy.types.Operator):
obj = create_mesh_object(context, verts, [], faces, "Gem")
return {'FINISHED'}
-
diff --git a/add_mesh_extra_objects/add_mesh_polysphere.py b/add_mesh_extra_objects/add_mesh_polysphere.py
index e94d45cc..b3832bce 100644
--- a/add_mesh_extra_objects/add_mesh_polysphere.py
+++ b/add_mesh_extra_objects/add_mesh_polysphere.py
@@ -30,32 +30,6 @@ bl_info = {
"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
@@ -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()
-'''
diff --git a/add_mesh_extra_objects/add_mesh_pyramid.py b/add_mesh_extra_objects/add_mesh_pyramid.py
index 1b1148f0..92f7f851 100644
--- a/add_mesh_extra_objects/add_mesh_pyramid.py
+++ b/add_mesh_extra_objects/add_mesh_pyramid.py
@@ -29,15 +29,13 @@ bl_info = {
'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 = []
@@ -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"
@@ -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()
-'''