a835bdb9f7c9f4330c485d24a9598f5ef0139e4a
[blender-addons-contrib.git] / btrace / __init__.py
1 #BEGIN GPL LICENSE BLOCK
2
3 #This program is free software; you can redistribute it and/or
4 #modify it under the terms of the GNU General Public License
5 #as published by the Free Software Foundation; either version 2
6 #of the License, or (at your option) any later version.
7
8 #This program is distributed in the hope that it will be useful,
9 #but WITHOUT ANY WARRANTY; without even the implied warranty of
10 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.    See the
11 #GNU General Public License for more details.
12
13 #You should have received a copy of the GNU General Public License
14 #along with this program; if not, write to the Free Software Foundation,
15 #Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
16
17 #END GPL LICENCE BLOCK
18
19 bl_info = {
20     'name': "Btrace",
21     'author': "liero, crazycourier, Atom, Meta-Androcto, MacKracken",
22     'version': (1, 1, ),
23     'blender': (2, 62),
24     'location': "View3D > Tools",
25     'description': "Tools for converting/animating objects/particles into curves",
26     'warning': "Still under development, bug reports appreciated",
27     'wiki_url': "http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts",
28     'tracker_url': "http://projects.blender.org/tracker/?func=detail&atid=468&aid=29563&group_id=153",
29     'category': "Add Curve"
30     }
31
32 import bpy
33 from .bTrace import *
34 import selection_utils
35 from bpy.props import FloatProperty, EnumProperty, IntProperty, BoolProperty, FloatVectorProperty
36
37 ### Define Classes to register
38 classes = [
39     TracerProperties,
40     TracerPropertiesMenu,
41     addTracerObjectPanel,
42     OBJECT_OT_convertcurve,
43     OBJECT_OT_objecttrace,
44     OBJECT_OT_objectconnect,
45     OBJECT_OT_writing,
46     OBJECT_OT_particletrace,
47     OBJECT_OT_traceallparticles,
48     OBJECT_OT_curvegrow,
49     OBJECT_OT_reset,
50     OBJECT_OT_fcnoise,
51     OBJECT_OT_meshfollow,
52     OBJECT_OT_materialChango,
53     OBJECT_OT_clearColorblender
54     ]
55
56 def register():
57     for c in classes:
58         bpy.utils.register_class(c)
59     bpy.types.WindowManager.curve_tracer = bpy.props.PointerProperty(type=TracerProperties)
60     bpy.types.WindowManager.btrace_menu = bpy.props.PointerProperty(type=TracerPropertiesMenu, update=deselect_others)
61
62 def unregister():
63     for c in classes:
64         bpy.utils.unregister_class(c)
65     del bpy.types.WindowManager.curve_tracer
66 if __name__ == "__main__":
67     register()