diff options
author | Luca Bonavita <mindrones@gmail.com> | 2010-07-13 18:08:29 +0400 |
---|---|---|
committer | Luca Bonavita <mindrones@gmail.com> | 2010-07-13 18:08:29 +0400 |
commit | b5cd123b04e6c46642b3e5617c8d354eb3eac744 (patch) | |
tree | d6c65fd5405eef61b0f6eb4f70702fabda76bfb7 /add_mesh_3d_function_surface.py | |
parent | 2d092f168009d6d233ba43b91f1886f5bc53f5f1 (diff) |
== 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
Diffstat (limited to 'add_mesh_3d_function_surface.py')
-rw-r--r-- | add_mesh_3d_function_surface.py | 51 |
1 files changed, 27 insertions, 24 deletions
diff --git a/add_mesh_3d_function_surface.py b/add_mesh_3d_function_surface.py index bc9c4814..6d8b609d 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', |