[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [774] trunk/py/scripts/addons: == trunk scripts confirming ==
Luca Bonavita
mindrones at gmail.com
Tue Jul 13 16:08:29 CEST 2010
Revision: 774
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=774
Author: mindrones
Date: 2010-07-13 16:08:29 +0200 (Tue, 13 Jul 2010)
Log Message:
-----------
== trunk scripts confirming ==
- every script is now (2,5,3)
- added warning field in bl_addon_info so every dev knows about this: when "warning" field is not empty, a warning icon appears and text alerts
users about a buggy script (this is used during development, released scripts should must have this empty of course)
- formatted scripts info like this
- GPL
- docstring
- bl_addon_info
- imports
so that the actual script starts after the bl_addon_info dict
- removed old 2.4x cruft like __url__, __bpydoc__, __author__ etc, not needed anymore (when the case integrated info with bl_addon_info and in
case of one email meta just put it in the GPL)
- next commits I plan to do contrib scripts and conform io scripts naming
Modified Paths:
--------------
trunk/py/scripts/addons/add_curve_aceous_galore.py
trunk/py/scripts/addons/add_curve_torus_knots.py
trunk/py/scripts/addons/add_mesh_3d_function_surface.py
trunk/py/scripts/addons/add_mesh_extras.py
trunk/py/scripts/addons/add_mesh_gears.py
trunk/py/scripts/addons/add_mesh_gemstones.py
trunk/py/scripts/addons/add_mesh_pipe_joint.py
trunk/py/scripts/addons/add_mesh_solid.py
trunk/py/scripts/addons/add_mesh_twisted_torus.py
trunk/py/scripts/addons/curve_simplify.py
trunk/py/scripts/addons/export_directx_x.py
trunk/py/scripts/addons/export_unreal_psk_psa.py
trunk/py/scripts/addons/fracture/__init__.py
trunk/py/scripts/addons/import_images_as_planes.py
trunk/py/scripts/addons/import_scene_mhx.py
trunk/py/scripts/addons/import_scene_unreal_psk.py
trunk/py/scripts/addons/io_anim_camera.py
trunk/py/scripts/addons/io_mesh_raw/__init__.py
trunk/py/scripts/addons/io_mesh_stl/__init__.py
trunk/py/scripts/addons/mesh_relax.py
trunk/py/scripts/addons/mesh_surface_sketch.py
trunk/py/scripts/addons/object_add_chain.py
trunk/py/scripts/addons/object_cloud_gen.py
trunk/py/scripts/addons/space_view3d_align_tools.py
trunk/py/scripts/addons/space_view3d_materials_utils.py
trunk/py/scripts/addons/space_view3d_panel_measure.py
trunk/py/scripts/addons/space_view3d_property_chart.py
trunk/py/scripts/addons/space_view3d_spacebar_menu.py
Modified: trunk/py/scripts/addons/add_curve_aceous_galore.py
===================================================================
--- trunk/py/scripts/addons/add_curve_aceous_galore.py 2010-07-13 13:32:07 UTC (rev 773)
+++ trunk/py/scripts/addons/add_curve_aceous_galore.py 2010-07-13 14:08:29 UTC (rev 774)
@@ -15,18 +15,23 @@
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# ##### END GPL LICENSE BLOCK #####
+
+
bl_addon_info = {
'name': 'Add Curve: Curveaceous Galore!',
'author': 'Jimmy Hazevoet, testscreenings',
'version': '0.1',
- 'blender': (2, 5, 2),
+ 'blender': (2, 5, 3),
'location': 'Add Curve menu',
'description': 'adds many types of curves',
+ 'warning': '', # used for warning icon and text in addons panel
'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \
'Scripts/Curve/Curves_Galore',
'tracker_url': 'https://projects.blender.org/tracker/index.php?'\
'func=detail&aid=22404&group_id=153&atid=469',
'category': 'Add Curve'}
+
+
##------------------------------------------------------------
#### import modules
import bpy
@@ -1148,4 +1153,4 @@
bpy.types.INFO_MT_curve_add.remove(Curveaceous_galore_button)
if __name__ == "__main__":
- register()
\ No newline at end of file
+ register()
Modified: trunk/py/scripts/addons/add_curve_torus_knots.py
===================================================================
--- trunk/py/scripts/addons/add_curve_torus_knots.py 2010-07-13 13:32:07 UTC (rev 773)
+++ trunk/py/scripts/addons/add_curve_torus_knots.py 2010-07-13 14:08:29 UTC (rev 774)
@@ -15,18 +15,23 @@
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# ##### END GPL LICENSE BLOCK #####
+
+
bl_addon_info = {
'name': 'Add Curve: Torus Knots',
'author': 'testscreenings',
'version': '0.1',
- 'blender': (2, 5, 2),
+ 'blender': (2, 5, 3),
'location': 'Add Curve Menu',
'description': 'adds many types of knots',
+ 'warning': '', # used for warning icon and text in addons panel
'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \
'Scripts/Curve/Torus_Knot',
'tracker_url': 'https://projects.blender.org/tracker/index.php?'\
'func=detail&aid=22403&group_id=153&atid=469',
'category': 'Add Curve'}
+
+
##------------------------------------------------------------
#### import modules
import bpy
Modified: trunk/py/scripts/addons/add_mesh_3d_function_surface.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_3d_function_surface.py 2010-07-13 13:32:07 UTC (rev 773)
+++ trunk/py/scripts/addons/add_mesh_3d_function_surface.py 2010-07-13 14:08:29 UTC (rev 774)
@@ -16,30 +16,7 @@
#
# ##### END GPL LICENSE BLOCK #####
-import bpy
-from mathutils import *
-from math import *
-from bpy.props import *
-
-bl_addon_info = {
- 'name': 'Add Mesh: 3D Function Surfaces',
- 'author': 'Buerbaum Martin (Pontiac)',
- 'version': '0.3.5',
- 'blender': (2, 5, 3),
- 'location': 'View3D > Add > Mesh > Z Function Surface &' \
- ' XYZ Function Surface',
- 'description': 'Create Objects using Math Formulas',
- 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \
- 'Scripts/Add_Mesh/Add_3d_Function_Surface',
- 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\
- 'func=detail&aid=21444&group_id=153&atid=469',
- 'category': 'Add Mesh'}
-
-# More Links:
-# http://gitorious.org/blender-scripts/blender-3d-function-surface
-# http://blenderartists.org/forum/showthread.php?t=179043
-
-__bpydoc__ = """
+"""
Z Function Surface
This script lets the user create a surface where the z coordinate
@@ -100,8 +77,34 @@
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
+
"""
+
+bl_addon_info = {
+ 'name': 'Add Mesh: 3D Function Surfaces',
+ 'author': 'Buerbaum Martin (Pontiac)',
+ 'version': '0.3.5',
+ 'blender': (2, 5, 3),
+ 'location': 'View3D > Add > Mesh > Z Function Surface &' \
+ ' XYZ Function Surface',
+ 'description': 'Create Objects using Math Formulas',
+ 'warning': '', # used for warning icon and text in addons panel
+ 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \
+ 'Scripts/Add_Mesh/Add_3d_Function_Surface',
+ 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\
+ 'func=detail&aid=21444&group_id=153&atid=469',
+ 'category': 'Add Mesh'}
+
+import bpy
+from mathutils import *
+from math import *
+from bpy.props import *
+
# List of safe functions for eval()
safe_list = ['math', 'acos', 'asin', 'atan', 'atan2', 'ceil', 'cos', 'cosh',
'degrees', 'e', 'exp', 'fabs', 'floor', 'fmod', 'frexp', 'hypot',
Modified: trunk/py/scripts/addons/add_mesh_extras.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_extras.py 2010-07-13 13:32:07 UTC (rev 773)
+++ trunk/py/scripts/addons/add_mesh_extras.py 2010-07-13 14:08:29 UTC (rev 774)
@@ -16,11 +16,6 @@
#
# ##### END GPL LICENSE BLOCK #####
-import bpy
-from mathutils import *
-from math import *
-from bpy.props import *
-
bl_addon_info = {
'name': 'Add Mesh: Extras',
'author': 'Pontiac, Fourmadmen, meta-androcto',
@@ -28,12 +23,18 @@
'blender': (2, 5, 3),
'location': 'View3D > Add > Mesh > Extras',
'description': 'Adds Star, Wedge, Sqorus & Spindle objects.',
+ 'warning': '', # used for warning icon and text in addons panel
'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \
'Scripts/Add_Mesh/Add_Extra',
'tracker_url': 'https://projects.blender.org/tracker/index.php?'\
'func=detail&aid=22457&group_id=153&atid=469',
'category': 'Add Mesh'}
+import bpy
+from mathutils import *
+from math import *
+from bpy.props import *
+
# calculates the matrix for the new object
# depending on user pref
def align_matrix(context):
Modified: trunk/py/scripts/addons/add_mesh_gears.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_gears.py 2010-07-13 13:32:07 UTC (rev 773)
+++ trunk/py/scripts/addons/add_mesh_gears.py 2010-07-13 14:08:29 UTC (rev 774)
@@ -19,20 +19,6 @@
#
# ***** END GPL LICENCE BLOCK *****
-
-bl_addon_info = {
- 'name': 'Add Mesh: Gears',
- 'author': 'Michel J. Anders (varkenvarken)',
- 'version': '2.4.1',
- 'blender': (2, 5, 3),
- 'location': 'View3D > Add > Mesh > Gears ',
- 'description': 'Adds a mesh Gear to the Add Mesh menu',
- 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \
- 'Scripts/Add_Mesh/Add_Gear',
- 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\
- 'func=detail&aid=21732&group_id=153&atid=469',
- 'category': 'Add Mesh'}
-
"""
What was needed to port it from 2.49 -> 2.50 alpha 0?
@@ -64,6 +50,20 @@
add_mesh_torus() (distributed with Blender).
"""
+bl_addon_info = {
+ 'name': 'Add Mesh: Gears',
+ 'author': 'Michel J. Anders (varkenvarken)',
+ 'version': '2.4.1',
+ 'blender': (2, 5, 3),
+ 'location': 'View3D > Add > Mesh > Gears ',
+ 'description': 'Adds a mesh Gear to the Add Mesh menu',
+ 'warning': '', # used for warning icon and text in addons panel
+ 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \
+ 'Scripts/Add_Mesh/Add_Gear',
+ 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\
+ 'func=detail&aid=21732&group_id=153&atid=469',
+ 'category': 'Add Mesh'}
+
import bpy
import mathutils
from math import *
Modified: trunk/py/scripts/addons/add_mesh_gemstones.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_gemstones.py 2010-07-13 13:32:07 UTC (rev 773)
+++ trunk/py/scripts/addons/add_mesh_gemstones.py 2010-07-13 14:08:29 UTC (rev 774)
@@ -28,6 +28,7 @@
'blender': (2, 5, 3),
'location': 'View3D > Add > Mesh > Gemstones',
'description': 'Adds various gemstone (Diamond & Gem) meshes.',
+ 'warning': '', # used for warning icon and text in addons panel
'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \
'Scripts/Add_Mesh/Add_Gemstones',
'tracker_url': 'https://projects.blender.org/tracker/index.php?'\
Modified: trunk/py/scripts/addons/add_mesh_pipe_joint.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_pipe_joint.py 2010-07-13 13:32:07 UTC (rev 773)
+++ trunk/py/scripts/addons/add_mesh_pipe_joint.py 2010-07-13 14:08:29 UTC (rev 774)
@@ -16,30 +16,7 @@
#
# ##### END GPL LICENSE BLOCK #####
-import bpy
-import mathutils
-from math import *
-from bpy.props import *
-
-bl_addon_info = {
- 'name': 'Add Mesh: Pipe Joints',
- 'author': 'Buerbaum Martin (Pontiac)',
- 'version': '0.10.5',
- 'blender': (2, 5, 3),
- 'location': 'View3D > Add > Mesh > Pipe Joint',
- 'description': 'Adds 5 pipe Joint types to the Add Mesh menu',
- 'wiki_url':
- 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \
- 'Scripts/Add_Mesh/Add_Pipe_Joints',
- 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\
- 'func=detail&aid=21443&group_id=153&atid=469',
- 'category': 'Add Mesh'}
-
-# More links:
-# http://gitorious.org/blender-scripts/blender-pipe-joint-script
-# http://blenderartists.org/forum/showthread.php?t=154394
-
-__bpydoc__ = """
+"""
Pipe Joints
This script lets the user create various types of pipe joints.
@@ -117,6 +94,10 @@
v0.2 - Restructured to allow different types of pipe (joints).
v0.1 - Initial revision.
+More links:
+http://gitorious.org/blender-scripts/blender-pipe-joint-script
+http://blenderartists.org/forum/showthread.php?t=154394
+
TODO:
Use a rotation matrix for rotating the circle vertices:
@@ -124,6 +105,26 @@
mesh.transform(rotation_matrix)
"""
+bl_addon_info = {
+ 'name': 'Add Mesh: Pipe Joints',
+ 'author': 'Buerbaum Martin (Pontiac)',
+ 'version': '0.10.5',
+ 'blender': (2, 5, 3),
+ 'location': 'View3D > Add > Mesh > Pipe Joint',
+ 'description': 'Adds 5 pipe Joint types to the Add Mesh menu',
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-extensions-cvs
mailing list