From b5cd123b04e6c46642b3e5617c8d354eb3eac744 Mon Sep 17 00:00:00 2001 From: Luca Bonavita <mindrones@gmail.com> Date: Tue, 13 Jul 2010 14:08:29 +0000 Subject: [PATCH] == 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 --- add_curve_aceous_galore.py | 9 ++++-- add_curve_torus_knots.py | 7 ++++- add_mesh_3d_function_surface.py | 51 +++++++++++++++++---------------- add_mesh_extras.py | 11 +++---- add_mesh_gears.py | 28 +++++++++--------- add_mesh_gemstones.py | 1 + add_mesh_pipe_joint.py | 49 +++++++++++++++---------------- add_mesh_solid.py | 34 ++++++++++++++++++---- add_mesh_twisted_torus.py | 13 ++++++++- curve_simplify.py | 15 ++++++---- export_directx_x.py | 35 ++++++++-------------- export_unreal_psk_psa.py | 44 ++++++++++++++-------------- fracture/__init__.py | 1 + import_images_as_planes.py | 3 +- import_scene_mhx.py | 17 +++++------ import_scene_unreal_psk.py | 33 ++++++++++----------- io_anim_camera.py | 7 +++-- io_mesh_raw/__init__.py | 3 +- io_mesh_stl/__init__.py | 9 ++++-- mesh_relax.py | 28 +++++++++--------- mesh_surface_sketch.py | 4 +-- object_add_chain.py | 13 +++++---- object_cloud_gen.py | 31 ++++++++++---------- space_view3d_align_tools.py | 7 +++-- space_view3d_materials_utils.py | 48 ++++++++++++------------------- space_view3d_panel_measure.py | 51 ++++++++++++++++++--------------- space_view3d_property_chart.py | 3 +- space_view3d_spacebar_menu.py | 39 +++++++++++-------------- 28 files changed, 317 insertions(+), 277 deletions(-) diff --git a/add_curve_aceous_galore.py b/add_curve_aceous_galore.py index a4ce149e0..9fe59f95f 100644 --- a/add_curve_aceous_galore.py +++ b/add_curve_aceous_galore.py @@ -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 @@ def unregister(): bpy.types.INFO_MT_curve_add.remove(Curveaceous_galore_button) if __name__ == "__main__": - register() \ No newline at end of file + register() diff --git a/add_curve_torus_knots.py b/add_curve_torus_knots.py index f49c25e29..9567e08dd 100644 --- a/add_curve_torus_knots.py +++ b/add_curve_torus_knots.py @@ -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 diff --git a/add_mesh_3d_function_surface.py b/add_mesh_3d_function_surface.py index bc9c4814f..6d8b609d8 100644 --- a/add_mesh_3d_function_surface.py +++ b/add_mesh_3d_function_surface.py @@ -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.2 - Added security check for eval() function 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', diff --git a/add_mesh_extras.py b/add_mesh_extras.py index 4c6b842ad..82290ab89 100644 --- a/add_mesh_extras.py +++ b/add_mesh_extras.py @@ -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 @@ bl_addon_info = { '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): diff --git a/add_mesh_gears.py b/add_mesh_gears.py index b08f3cd5b..05aaa17c7 100644 --- a/add_mesh_gears.py +++ b/add_mesh_gears.py @@ -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 @@ The code to actually implement the AddGear() function is mostly copied from 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 * diff --git a/add_mesh_gemstones.py b/add_mesh_gemstones.py index 0d12ab16b..93546b426 100644 --- a/add_mesh_gemstones.py +++ b/add_mesh_gemstones.py @@ -28,6 +28,7 @@ bl_addon_info = { '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?'\ diff --git a/add_mesh_pipe_joint.py b/add_mesh_pipe_joint.py index 68baca292..6fe342519 100644 --- a/add_mesh_pipe_joint.py +++ b/add_mesh_pipe_joint.py @@ -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.3 - Code for wye (Y) shape (straight pipe with "branch" for now) 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 @@ rotation_matrix = mathutils.RotationMatrix(-math.pi/2, 4, 'x') 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', + '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_Pipe_Joints', + 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\ + 'func=detail&aid=21443&group_id=153&atid=469', + 'category': 'Add Mesh'} + +import bpy +import mathutils +from math import * +from bpy.props import * + + # Apply view rotation to objects if "Align To" for # new objects was set to "VIEW" in the User Preference. # Is now handled in the invoke functions diff --git a/add_mesh_solid.py b/add_mesh_solid.py index d828d52b6..04a9f6fd2 100644 --- a/add_mesh_solid.py +++ b/add_mesh_solid.py @@ -1,9 +1,22 @@ -import bpy -from bpy.props import FloatProperty,EnumProperty,BoolProperty -from math import sqrt -from mathutils import Vector,Matrix -#from rawMeshUtils import * -from functools import reduce +# ***** BEGIN GPL LICENSE BLOCK ***** +# +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# ***** END GPL LICENCE BLOCK ***** + bl_addon_info = { 'name': 'Add Mesh: Regular Solids', @@ -12,12 +25,21 @@ bl_addon_info = { 'blender': (2, 5, 3), 'location': 'View3D > Add > Mesh > Regular Solids', 'description': 'Add a Regular Solid mesh.', + '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_Solid', 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\ 'func=detail&aid=22405&group_id=153&atid=469', 'category': 'Add Mesh'} + +import bpy +from bpy.props import FloatProperty,EnumProperty,BoolProperty +from math import sqrt +from mathutils import Vector,Matrix +#from rawMeshUtils import * +from functools import reduce + # Apply view rotation to objects if "Align To" for # new objects was set to "VIEW" in the User Preference. def apply_object_align(context, ob): diff --git a/add_mesh_twisted_torus.py b/add_mesh_twisted_torus.py index a7aaae0a4..6de2df1fb 100644 --- a/add_mesh_twisted_torus.py +++ b/add_mesh_twisted_torus.py @@ -1,5 +1,5 @@ # add_mesh_twisted_torus.py Copyright (C) 2009-2010, Paulo Gomes -# email__=["tuga3d {at} gmail {dot} com"] +# tuga3d {at} gmail {dot} com # add twisted torus to the blender 2.50 add->mesh menu # ***** BEGIN GPL LICENSE BLOCK ***** # @@ -20,6 +20,16 @@ # # ***** END GPL LICENCE BLOCK ***** +""" + +Usage: + +* Launch from Add Mesh menu + +* Modify parameters as desired or keep defaults + +""" + bl_addon_info = { 'name': 'Add Mesh: Twisted Torus', 'author': 'Paulo_Gomes', @@ -27,6 +37,7 @@ bl_addon_info = { 'blender': (2, 5, 3), 'location': 'View3D > Add > Mesh ', 'description': 'Adds a mesh Twisted Torus 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_Twisted_Torus', 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\ diff --git a/curve_simplify.py b/curve_simplify.py index cfa638563..3cb2bfb8e 100644 --- a/curve_simplify.py +++ b/curve_simplify.py @@ -15,21 +15,26 @@ # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # ##### END GPL LICENSE BLOCK ##### -''' + +""" This script simplifies Curves. -''' +""" + bl_addon_info = { 'name': 'Curve: simplify curves', 'author': 'testscreenings', 'version': '1', - 'blender': (2, 5, 2), + 'blender': (2, 5, 3), 'location': 'Toolshelf > search > simplify curves', + 'description': 'This script simplifies 3D curves and fcurves', + 'warning': '', # used for warning icon and text in addons panel 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \ 'Scripts/Curve/Curve_Simplify', 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\ 'func=detail&aid=22327&group_id=153&atid=468', - 'description': 'this script simplifies 3D curves and fcurves', 'category': 'Add Curve'} + + #################################################### import bpy from bpy.props import * @@ -589,4 +594,4 @@ def unregister(): bpy.types.unregister(GRAPH_OT_simplify) if __name__ == "__main__": - register() \ No newline at end of file + register() diff --git a/export_directx_x.py b/export_directx_x.py index 2a42b4c47..8b41f01cd 100644 --- a/export_directx_x.py +++ b/export_directx_x.py @@ -15,17 +15,18 @@ # All rights reserved. # ***** GPL LICENSE BLOCK ***** +""" -#NOTE: ======================================================== -#I've begun work on a Full Animation feature to more accurately export -#FCurve data. It's going pretty well, but I'm having some trouble with -#axis flipping. To "enable" the feature, uncomment line #988 -#The problem is in the WriteFullAnimationSet function at line #948 -# - Chris (2010-7-11) +Export: DirectX Model Format (.x) +NOTE: ======================================================== +I've begun work on a Full Animation feature to more accurately export +FCurve data. It's going pretty well, but I'm having some trouble with +axis flipping. To "enable" the feature, uncomment line #988 +The problem is in the WriteFullAnimationSet function at line #948 + - Chris (2010-7-11) -#One line description for early versions of Blender 2.52. -"Export: DirectX Model Format (.x)" +""" bl_addon_info = { 'name': 'Export: DirectX Model Format (.x)', @@ -33,26 +34,14 @@ bl_addon_info = { 'version': '1.1', 'blender': (2, 5, 3), 'location': 'File > Export', - 'description': 'Export to the DirectX Model Format', + 'description': 'Export to the DirectX Model Format (.x)', + 'warning': '', # used for warning icon and text in addons panel 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \ 'Scripts/File_I-O/DirectX_Exporter', 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\ 'func=detail&aid=22795&group_id=153&atid=469', 'category': 'Import/Export'} -""" -Name: 'DirectX Exporter' -Blender: 252 -Group: 'Export' -Tooltip: 'Exports to the DirectX model file format (.x)' -""" - -__author__ = "Chris Foster (Kira Vakaan)" -__url__ = "http://wiki.blender.org/index.php/Extensions:2.5/Py/" \ - "Scripts/File_I-O/DirectX_Exporter" -__version__ = "1.1" -__bpydoc__ = """\ -""" import os from math import radians @@ -1066,4 +1055,4 @@ def unregister(): if __name__ == "__main__": - register() \ No newline at end of file + register() diff --git a/export_unreal_psk_psa.py b/export_unreal_psk_psa.py index 15b6c3cfc..81cdcf028 100644 --- a/export_unreal_psk_psa.py +++ b/export_unreal_psk_psa.py @@ -14,18 +14,8 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # All rights reserved. # ***** GPL LICENSE BLOCK ***** -""" -Name: 'Unreal Skeletal Mesh/Animation (.psk and .psa) Export' -Blender: 250 -Group: 'Export' -Tooltip: 'Unreal Skeletal Mesh and Animation Export (*.psk, *.psa)' -""" - -__author__ = "Darknet/Optimus_P-Fat/Active_Trash/Sinsoft" -__url__ = ['http://sinsoft.com', 'www.sinsoft.com', 'sinsoft.com'] -__version__ = "0.1.1" -__bpydoc__ = """\ +""" -- Unreal Skeletal Mesh and Animation Export (.psk and .psa) export script v0.0.1 --<br> @@ -69,9 +59,27 @@ Credit to: - freenode #blendercoder -> user -> ideasman42 --Give Credit to those who work on this script. +- Give Credit to those who work on this script. + +- http://sinsoft.com """ + +bl_addon_info = { + 'name': 'Export Skeleletal Mesh/Animation Data', + 'author': 'Darknet/Optimus_P-Fat/Active_Trash/Sinsoft', + 'version': '2.0', + 'blender': (2, 5, 3), + 'location': 'File > Export > Skeletal Mesh/Animation Data (.psk/.psa)', + 'description': 'Export Unreal Engine (.psk)', + 'warning': '', # used for warning icon and text in addons panel + 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \ + 'Scripts/File_I-O/Unreal_psk_psa', + 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\ + 'func=detail&aid=21366&group_id=153&atid=469', + 'category': 'Import/Export'} + + import os import time import datetime @@ -83,16 +91,6 @@ from struct import pack, calcsize MENUPANELBOOL = True -bl_addon_info = { - 'name': 'Export Skeleletal Mesh/Animation Data', - 'author': 'Darknet/Optimus_P-Fat/Active_Trash/Sinsoft', - 'version': '2.0', - 'blender': (2, 5, 3), - 'location': 'File > Export > Skeletal Mesh/Animation Data (.psk/.psa)', - 'url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \ - 'Scripts/File_I-O/Unreal_psk_psa', - 'category': 'Export'} - # REFERENCE MATERIAL JUST IN CASE: # # U = x / sqrt(x^2 + y^2 + z^2) @@ -1602,4 +1600,4 @@ def unregister(): bpy.types.INFO_MT_file_export.remove(menu_func) if __name__ == "__main__": - register() \ No newline at end of file + register() diff --git a/fracture/__init__.py b/fracture/__init__.py index ca535c42a..2e76543be 100644 --- a/fracture/__init__.py +++ b/fracture/__init__.py @@ -24,6 +24,7 @@ bl_addon_info = { 'location': 'Fracture tools (Search > Fracture Object & ,' \ 'Add -> Fracture Helper Objects', 'description': 'Fractured Object, Bomb, Projectile, Recorder', + 'warning': '', # used for warning icon and text in addons panel 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \ 'Scripts/Object/Fracture', 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\ diff --git a/import_images_as_planes.py b/import_images_as_planes.py index 519ec362f..0bdba5c89 100644 --- a/import_images_as_planes.py +++ b/import_images_as_planes.py @@ -51,11 +51,12 @@ bl_addon_info = { 'name': 'Import: Images as Planes', 'author': 'Florian Meyer (testscreenings)', 'version': '0.7', - 'blender': (2, 5, 2), + 'blender': (2, 5, 3), 'location': 'File > Import > Images as Planes', 'description': 'Imports images and creates planes' \ ' with the appropiate aspect ratio.' \ ' The images are mapped to the planes.', + '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/Planes_from_Images', 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\ diff --git a/import_scene_mhx.py b/import_scene_mhx.py index b7d100f60..f233b89a4 100644 --- a/import_scene_mhx.py +++ b/import_scene_mhx.py @@ -20,17 +20,18 @@ Version 0.9 """ bl_addon_info = { - 'name': 'Import MakeHuman (.mhx)', - 'author': 'Thomas Larsson', - 'version': '0.9, Make Human Alpha 5', - 'blender': (2, 5, 3), - 'location': 'File > Import', - 'description': 'Import files in the MakeHuman eXchange format (.mhx)', - 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \ + 'name': 'Import MakeHuman (.mhx)', + 'author': 'Thomas Larsson', + 'version': '0.9, Make Human Alpha 5', + 'blender': (2, 5, 3), + 'location': 'File > Import', + 'description': 'Import files in the MakeHuman eXchange format (.mhx)', + 'warning': '', # used for warning icon and text in addons panel + 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \ 'Scripts/File_I-O/Make_Human', 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\ 'func=detail&aid=21872&group_id=153&atid=469', - 'category': 'Import/Export'} + 'category': 'Import/Export'} """ Place this file in the .blender/scripts/addons dir diff --git a/import_scene_unreal_psk.py b/import_scene_unreal_psk.py index 9a2b289d0..cbedb30e1 100644 --- a/import_scene_unreal_psk.py +++ b/import_scene_unreal_psk.py @@ -12,6 +12,20 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +""" +Version': '2.0' ported by Darknet + +Unreal Tournament PSK file to Blender mesh converter V1.0 +Author: D.M. Sturgeon (camg188 at the elYsium forum), ported by Darknet +Imports a *psk file to a new mesh + +-No UV Texutre +-No Weight +-No Armature Bones +-No Material ID +-Export Text Log From Current Location File (Bool ) +""" + bl_addon_info = { 'name': 'Import: Unreal Skeleton Mesh(.psk)', 'author': 'Darknet', @@ -19,30 +33,13 @@ bl_addon_info = { 'blender': (2, 5, 3), 'location': 'File > Import ', 'description': 'Import Unreal Engine (.psk)', + 'warning': '', # used for warning icon and text in addons panel 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/'\ 'Scripts/File_I-O/Unreal_psk_psa', 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\ 'func=detail&aid=21366&group_id=153&atid=469', 'category': 'Import/Export'} -""" -Name: 'Skeleton Mesh Import(.psk)' -Blender: 250 -Group: 'Import' -Tip: 'Import mesh data from Unreal Tournament PSK file.' - -Updated by: Darknet - -# Unreal Tournament PSK file to Blender mesh converter V1.0 -# Author: D.M. Sturgeon (camg188 at the elYsium forum) -# Imports a *psk file to a new mesh - -#-No UV Texutre -#-No Weight -#-No Armature Bones -#-No Material ID -#-Export Text Log From Current Location File (Bool ) -""" import bpy import mathutils diff --git a/io_anim_camera.py b/io_anim_camera.py index 489cf8569..d50fce1fa 100644 --- a/io_anim_camera.py +++ b/io_anim_camera.py @@ -19,14 +19,17 @@ # <pep8 compliant> bl_addon_info = { - 'name': 'I/O: Camera Animation', + 'name': 'Export: Camera Animation', 'author': 'Campbell Barton', 'version': '0.1', 'blender': (2, 5, 3), 'location': 'File > Export > Camera Animation', 'description': 'Export Cameras & Markers', + 'warning': '', # used for warning icon and text in addons panel 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \ - 'Scripts/File_I-O/Camera_Animation', + 'Scripts/File_I-O/Camera_Animation', + 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\ + 'func=detail&aid=22835&group_id=153&atid=469', 'category': 'Import/Export'} diff --git a/io_mesh_raw/__init__.py b/io_mesh_raw/__init__.py index 74474c098..fcd9c9e15 100644 --- a/io_mesh_raw/__init__.py +++ b/io_mesh_raw/__init__.py @@ -23,8 +23,9 @@ bl_addon_info = { 'blender': (2, 5, 3), 'location': 'File > Import/Export > Raw faces ', 'description': 'Import Raw Faces (.raw format)', + 'warning': '', # used for warning icon and text in addons panel 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \ - 'Scripts/File_I-O/Raw_Mesh_IO', + 'Scripts/File_I-O/Raw_Mesh_IO', 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\ 'func=detail&aid=21733&group_id=153&atid=469', 'category': 'Import/Export'} diff --git a/io_mesh_stl/__init__.py b/io_mesh_stl/__init__.py index e5cc22d56..b671dd9ec 100644 --- a/io_mesh_stl/__init__.py +++ b/io_mesh_stl/__init__.py @@ -16,7 +16,7 @@ # # ##### END GPL LICENSE BLOCK ##### -''' +""" Import/Export STL files (binary or ascii) - Import automatically remove the doubles. @@ -31,17 +31,20 @@ Import: Export: - Does not do the object space transformation - Export only one object (the selected one) -''' +""" bl_addon_info = { - 'name': 'I/O: STL', + 'name': 'Import/Export: STL format', 'author': 'Guillaume Bouchard (Guillaum)', 'version': '1', 'blender': (2, 5, 3), 'location': 'File > Import/Export > Stl', 'description': 'Import/Export Stl files', + 'warning': '', # used for warning icon and text in addons panel 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \ 'Scripts/File I-O/STL', # @todo write the page + 'tracker_url': 'https://projects.blender.org/tracker/index.php?' \ + 'func=detail&aid=22837&group_id=153&atid=469', 'category': 'Import/Export'} import bpy diff --git a/mesh_relax.py b/mesh_relax.py index e31f1ced6..ce70b0389 100644 --- a/mesh_relax.py +++ b/mesh_relax.py @@ -21,19 +21,6 @@ # # ***** END GPL LICENCE BLOCK ***** -bl_addon_info = { - 'name': 'Mesh: Relax', - 'author': 'Fabian Fricke', - 'version': '1.1 2010/04/22', - 'blender': (2, 5, 3), - 'location': 'View3D > Specials > Relax ', - 'description': 'Relax the selected verts while retaining the shape', - 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \ - 'Scripts/Modeling/Relax', - 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\ - 'func=detail&aid=21421&group_id=153&atid=469', - 'category': 'Mesh'} - """ Usage: @@ -48,6 +35,21 @@ Additional links: """ +bl_addon_info = { + 'name': 'Mesh: Relax', + 'author': 'Fabian Fricke', + 'version': '1.1 2010/04/22', + 'blender': (2, 5, 3), + 'location': 'View3D > Specials > Relax ', + 'description': 'Relax the selected verts while retaining the shape', + 'warning': '', # used for warning icon and text in addons panel + 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \ + 'Scripts/Modeling/Relax', + 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\ + 'func=detail&aid=21421&group_id=153&atid=469', + 'category': 'Mesh'} + + import bpy from bpy.props import IntProperty diff --git a/mesh_surface_sketch.py b/mesh_surface_sketch.py index 7f573df7c..358765207 100644 --- a/mesh_surface_sketch.py +++ b/mesh_surface_sketch.py @@ -16,15 +16,15 @@ # # ##### END GPL LICENSE BLOCK ##### -# version 0.8 Beta bl_addon_info = { 'name': 'Mesh: Surface Sketch', 'author': 'Eclectiel', - 'version': '0.8', + 'version': '0.8 Beta', 'blender': (2, 5, 3), 'location': 'View3D > EditMode > ToolShelf', 'description': 'Draw meshes and re-topologies with Grease Pencil', + 'warning': '', # used for warning icon and text in addons panel 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \ 'Scripts/Mesh/Surface_Sketch', 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\ diff --git a/object_add_chain.py b/object_add_chain.py index 8b23c1b53..407827257 100644 --- a/object_add_chain.py +++ b/object_add_chain.py @@ -15,9 +15,8 @@ # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # ##### END GPL LICENSE BLOCK ##### -# -import bpy -# + + bl_addon_info = { 'name': 'Object: Add Chain', 'author': 'Brian Hinton (Nichod)', @@ -25,14 +24,16 @@ bl_addon_info = { 'blender': (2, 5, 3), 'location': 'View3D > Add > Mesh > Chain', 'description': 'Adds Chain with curve guide for easy creation', + 'warning': '', # used for warning icon and text in addons panel 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \ 'Scripts/Object/Add_Chain', 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\ 'func=detail&aid=22203&group_id=153&atid=469', 'category': 'Object'} -# -# -# + + +import bpy + def Add_Chain(): diff --git a/object_cloud_gen.py b/object_cloud_gen.py index 93456c141..2494e1028 100644 --- a/object_cloud_gen.py +++ b/object_cloud_gen.py @@ -16,21 +16,6 @@ # # ##### END GPL LICENSE BLOCK ##### - -bl_addon_info = { - 'name': 'Object: Cloud Generator', - 'author': 'Nick Keeline(nrk)', - 'version': '0.7', - 'blender': (2, 5, 3), - 'location': 'Tool Shelf ', - 'description': 'Creates Volumetric Clouds', - 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \ - 'Scripts/Object/Cloud_Gen', - 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\ - 'func=detail&aid=22015&group_id=153&atid=469', - 'category': 'Object'} - - """ Place this file in the .blender/scripts/addons dir You have to activated the script in the "Add-Ons" tab (user preferences). @@ -47,6 +32,22 @@ Rev 0.6 added poll function to operator, fixing crash with no selected objects Rev 0.7 added particles option and Type of Cloud wanted selector """ + +bl_addon_info = { + 'name': 'Object: Cloud Generator', + 'author': 'Nick Keeline(nrk)', + 'version': '0.7', + 'blender': (2, 5, 3), + 'location': 'Tool Shelf ', + 'description': 'Creates Volumetric Clouds', + 'warning': '', # used for warning icon and text in addons panel + 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \ + 'Scripts/Object/Cloud_Gen', + 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\ + 'func=detail&aid=22015&group_id=153&atid=469', + 'category': 'Object'} + + import bpy import mathutils from math import * diff --git a/space_view3d_align_tools.py b/space_view3d_align_tools.py index 0dfe442b8..95f8843c9 100644 --- a/space_view3d_align_tools.py +++ b/space_view3d_align_tools.py @@ -19,6 +19,8 @@ # # ***** END GPL LICENCE BLOCK ***** +"""Align Selected Objects""" + bl_addon_info = { 'name': '3D View: Align Tools', 'author': 'Gabriel Beaudin (gabhead)', @@ -26,13 +28,12 @@ bl_addon_info = { 'blender': (2, 5, 3), 'location': 'Tool Shelf', 'description': 'Align selected objects to the active object', - 'wiki_url': - 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \ + 'warning': '', # used for warning icon and text in addons panel + 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \ 'Scripts/3D interaction/Align_Tools', 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\ 'func=detail&aid==22389&group_id=153&atid=468', 'category': '3D View'} -"Align Selected Objects" import bpy diff --git a/space_view3d_materials_utils.py b/space_view3d_materials_utils.py index 24b4db159..524203549 100644 --- a/space_view3d_materials_utils.py +++ b/space_view3d_materials_utils.py @@ -22,31 +22,8 @@ # # ##### END GPL LICENSE BLOCK ##### -bl_addon_info = { - 'name': '3D View: Material Utils', - 'author': 'michaelw', - 'version': '0.9', - 'blender': (2, 5, 3), - 'location': 'View3D > Q key', - 'description': 'Menu of material tools (assign, select by etc) in the 3D View', - 'wiki_url': - 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \ - 'Scripts/3D interaction/Materials Utils', - 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\ - 'func=detail&aid=22140&group_id=153&atid=469', - 'category': '3D View'} -"a menu of material tools" - -""" -Name: 'Master Material Menu' -Blender: 253 """ - -__author__ = ["michaelW"] -__version__ = '1.3' -__url__ = [""] -__bpydoc__ = """ -this script has several functions and operators... grouped for convenience +This script has several functions and operators... grouped for convenience * assign material: offers the user a list of ALL the materials in the blend file and an additional "new" entry the chosen material will be assigned to all the selected objects in object mode. @@ -57,22 +34,33 @@ this script has several functions and operators... grouped for convenience After assigning the material "clean material slots" and "material to texface" are auto run to keep things tidy (see description bellow) -*select by material +* select by material in object mode this offers the user a menu of all materials in the blend file any objects using the selected material will become selected, any objects without the material will be removed from selection. in edit mode: the menu offers only the materials attached to the current object. It will select the faces that use the material and deselect those that do not. -*clean material slots +* clean material slots for all selected objects any empty material slots or material slots with materials that are not used by the mesh faces will be removed. -* - - - Any un-used materials and slots will be removed +* Any un-used materials and slots will be removed """ +bl_addon_info = { + 'name': '3D View: Material Utils', + 'author': 'michaelw', + 'version': '1.3', + 'blender': (2, 5, 3), + 'location': 'View3D > Q key', + 'description': 'Menu of material tools (assign, select by etc) in the 3D View', + 'warning': '', # used for warning icon and text in addons panel + 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \ + 'Scripts/3D interaction/Materials Utils', + 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\ + 'func=detail&aid=22140&group_id=153&atid=469', + 'category': '3D View'} + import bpy from bpy.props import* diff --git a/space_view3d_panel_measure.py b/space_view3d_panel_measure.py index a790a1049..e462f4b31 100644 --- a/space_view3d_panel_measure.py +++ b/space_view3d_panel_measure.py @@ -16,30 +16,8 @@ # # ##### END GPL LICENSE BLOCK ##### -import bpy -from bpy.props import * -from mathutils import Vector, Matrix -import bgl -import blf - -bl_addon_info = { - 'name': '3D View: Measure panel', - 'author': 'Buerbaum Martin (Pontiac)', - 'version': '0.7', - 'blender': (2, 5, 3), - 'location': 'View3D > Properties > Measure', - 'description': 'Measure distances between objects', - 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \ - 'Scripts/3D_interaction/Panel_Measure', - 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\ - 'func=detail&aid=21445&group_id=153&atid=469', - 'category': '3D View'} - -# More links: -# http://gitorious.org/blender-scripts/blender-measure-panel-script -# http://blenderartists.org/forum/showthread.php?t=177800 -__bpydoc__ = """ +""" Measure panel This script displays in OBJECT MODE: @@ -144,8 +122,35 @@ Mainly this happens when clicking inside the white circle of the translation manipulator. There may be other cases though. See the other "todo" comments below. + +More links: +http://gitorious.org/blender-scripts/blender-measure-panel-script +http://blenderartists.org/forum/showthread.php?t=177800 + """ +bl_addon_info = { + 'name': '3D View: Measure panel', + 'author': 'Buerbaum Martin (Pontiac)', + 'version': '0.7', + 'blender': (2, 5, 3), + 'location': 'View3D > Properties > Measure', + 'description': 'Measure distances between objects', + 'warning': '', # used for warning icon and text in addons panel + 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \ + 'Scripts/3D_interaction/Panel_Measure', + 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\ + 'func=detail&aid=21445&group_id=153&atid=469', + 'category': '3D View'} + + +import bpy +from bpy.props import * +from mathutils import Vector, Matrix +import bgl +import blf + + # Precicion for display of float values. PRECISION = 4 diff --git a/space_view3d_property_chart.py b/space_view3d_property_chart.py index 4a99d1889..bbbc90b39 100644 --- a/space_view3d_property_chart.py +++ b/space_view3d_property_chart.py @@ -18,7 +18,7 @@ # # ***** END GPL LICENCE BLOCK ***** -'''List properties of selected objects''' +"""List properties of selected objects""" bl_addon_info = { 'name': '3D View: Object Property Chart', @@ -27,6 +27,7 @@ bl_addon_info = { 'blender': (2, 5, 3), 'location': 'Tool Shelf', 'description': 'Edit arbitrary selected properties for objects of the same type', + 'warning': '', # used for warning icon and text in addons panel 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \ 'Scripts/3D interaction/Object Property Chart', 'tracker_url': 'https://projects.blender.org/tracker/index.php?' \ diff --git a/space_view3d_spacebar_menu.py b/space_view3d_spacebar_menu.py index ab9395ba7..fdfc85ed7 100644 --- a/space_view3d_spacebar_menu.py +++ b/space_view3d_spacebar_menu.py @@ -22,29 +22,7 @@ # # ##### END GPL LICENSE BLOCK ##### -bl_addon_info = { - 'name': '3D View: Dynamic Spacebar Menu', - 'author': 'JayDez, sim88, meta-androcto', - 'version': '1.5', - 'blender': (2, 5, 3), - 'location': 'View3D > Spacebar', - 'description': 'Context sensitive spacebar menu', - 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \ - 'Scripts/3D_interaction/Dynamic_Spacebar_Menu', - 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\ - 'func=detail&aid=22060&group_id=153&atid=469', - 'category': '3D View'} -"Add Dynamic Spacebar Menu" - """ -Name: 'Dynamic Spacebar Menu' -Blender: 253 -""" - -__author__ = ["JayDez, sim88, meta-androcto, sam"] -__version__ = '1.5' -__url__ = [""] -__bpydoc__ = """ Dynamic Menu This adds a the Dynamic Spacebar Menu in the View3D. @@ -68,12 +46,27 @@ v0.1 through 0.9 - various tests/contributions by various people and scripts Devs: JayDez, Crouch, sim88, meta-androcto, Sam Scripts: 3D Cursor Menu, Original Dynamic Menu """ + + +bl_addon_info = { + 'name': '3D View: Dynamic Spacebar Menu', + 'author': 'JayDez, sim88, meta-androcto', 'sam' + 'version': '1.5', + 'blender': (2, 5, 3), + 'location': 'View3D > Spacebar', + 'description': 'Context sensitive spacebar menu', + 'warning': '', # used for warning icon and text in addons panel + 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \ + 'Scripts/3D_interaction/Dynamic_Spacebar_Menu', + 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\ + 'func=detail&aid=22060&group_id=153&atid=469', + 'category': '3D View'} + import bpy from bpy import * from mathutils import Vector, Matrix import math - # Dynamic Menu class VIEW3D_MT_Space_Dynamic_Menu(bpy.types.Menu): bl_label = "Dynamic Spacebar Menu" -- GitLab