1 # SPDX-FileCopyrightText: 2017-2022 Blender Foundation
3 # SPDX-License-Identifier: GPL-2.0-or-later
8 "author": "liero, crazycourier, Atom, Meta-Androcto, MacKracken",
10 "blender": (2, 80, 0),
11 "location": "View3D > Sidebar > Create Tab",
12 "description": "Tools for converting/animating objects/particles into curves",
14 "doc_url": "{BLENDER_MANUAL_URL}/addons/add_curve/btracer.html",
15 "category": "Add Curve",
20 # if "bpy" in locals():
22 # importlib.reload(bTrace_props)
23 # importlib.reload(bTrace)
25 # from . import bTrace_props
26 # from . import bTrace
27 from . import bTrace_props
30 from bpy
.types
import AddonPreferences
31 from . bTrace_props
import TracerProperties
33 from . bTrace
import (
34 OBJECT_OT_convertcurve
,
35 OBJECT_OT_objecttrace
,
36 OBJECT_OT_objectconnect
,
38 OBJECT_OT_particletrace
,
39 OBJECT_OT_traceallparticles
,
44 OBJECT_OT_materialChango
,
45 OBJECT_OT_clearColorblender
,
48 from . bTrace_panel
import addTracerObjectPanel
49 from bpy
.props
import (
56 class btrace_preferences(AddonPreferences
):
59 expand_enum
: EnumProperty(
62 ('list', "Drop down list",
63 "Show all the items as dropdown list in the Tools Region"),
64 ('col', "Enable Expanded UI Panel",
65 "Show all the items expanded in the Tools Region in a column"),
66 ('row', "Icons only in a row",
67 "Show all the items as icons expanded in a row in the Tools Region")
73 def draw(self
, context
):
75 layout
.label(text
="UI Options:")
77 row
= layout
.row(align
=True)
78 row
.prop(self
, "expand_enum", text
="UI Options", expand
=True)
81 # Define Classes to register
85 OBJECT_OT_convertcurve
,
86 OBJECT_OT_objecttrace
,
87 OBJECT_OT_objectconnect
,
89 OBJECT_OT_particletrace
,
90 OBJECT_OT_traceallparticles
,
95 OBJECT_OT_materialChango
,
96 OBJECT_OT_clearColorblender
,
102 # register, unregister = bpy.utils.register_classes_factory(classes)
105 bpy
.utils
.register_class(cls
)
106 bpy
.types
.WindowManager
.curve_tracer
= PointerProperty(type=TracerProperties
)
110 bpy
.utils
.unregister_class(cls
)
111 del bpy
.types
.WindowManager
.curve_tracer
113 # if __name__ == "__main__":