1 # ##### BEGIN GPL LICENSE BLOCK #####
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.
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.
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 # ##### END GPL LICENSE BLOCK #####
22 "author": "liero, crazycourier, Atom, Meta-Androcto, MacKracken",
24 "blender": (2, 78, 0),
25 "location": "View3D > Tools",
26 "description": "Tools for converting/animating objects/particles into curves",
28 "wiki_url": "https://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/Curve/Btrace",
29 "category": "Add Curve"}
33 importlib
.reload(bTrace_props
)
34 importlib
.reload(bTrace
)
36 from . import bTrace_props
40 from bpy
.types
import AddonPreferences
41 from .bTrace_props
import (
46 OBJECT_OT_convertcurve
,
47 OBJECT_OT_objecttrace
,
48 OBJECT_OT_objectconnect
,
50 OBJECT_OT_particletrace
,
51 OBJECT_OT_traceallparticles
,
56 OBJECT_OT_materialChango
,
57 OBJECT_OT_clearColorblender
,
59 from bpy
.props
import (
66 class btrace_preferences(AddonPreferences
):
69 expand_enum
= EnumProperty(
72 ('list', "Drop down list",
73 "Show all the items as dropdown list in the Tools Region"),
74 ('col', "Enable Expanded UI Panel",
75 "Show all the items expanded in the Tools Region in a column"),
76 ('row', "Icons only in a row",
77 "Show all the items as icons expanded in a row in the Tools Region")
83 def draw(self
, context
):
85 layout
.label("UI Options:")
87 row
= layout
.row(align
=True)
88 row
.prop(self
, "expand_enum", text
="UI Options", expand
=True)
91 # Define Classes to register
95 OBJECT_OT_convertcurve
,
96 OBJECT_OT_objecttrace
,
97 OBJECT_OT_objectconnect
,
99 OBJECT_OT_particletrace
,
100 OBJECT_OT_traceallparticles
,
104 OBJECT_OT_meshfollow
,
105 OBJECT_OT_materialChango
,
106 OBJECT_OT_clearColorblender
,
113 bpy
.utils
.register_class(cls
)
114 bpy
.types
.WindowManager
.curve_tracer
= PointerProperty(type=TracerProperties
)
119 bpy
.utils
.unregister_class(cls
)
120 del bpy
.types
.WindowManager
.curve_tracer
123 if __name__
== "__main__":