forked from clarkx/Lumiere-V0.4
-
Notifications
You must be signed in to change notification settings - Fork 1
/
__init__.py
93 lines (81 loc) · 2.69 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# ##### 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# ##### END GPL LICENSE BLOCK #####
bl_info = {
"name": "Lumiere",
"author": "Clarkx",
"description": "Interactive Lighting add-on for Blender.",
"version": (0, 4),
"blender": (2, 91, 0),
"location": "3D View",
"warning": "",
"wiki_url": "",
"support": 'COMMUNITY',
"category": "Lighting"
}
import imp
from . import lumiere_utils
imp.reload(lumiere_utils)
from . import lumiere_draw
imp.reload(lumiere_draw)
from .lights import lumiere_lights
imp.reload(lumiere_lights)
from .lights import lumiere_lights_ui
imp.reload(lumiere_lights_ui)
from .lights import lumiere_lights_gizmo
imp.reload(lumiere_lights_gizmo)
from .lights import lumiere_lights_materials
imp.reload(lumiere_lights_materials)
from . import lumiere_op
imp.reload(lumiere_op)
from . import lumiere_preferences
imp.reload(lumiere_preferences)
from .platform import lumiere_platform
imp.reload(lumiere_platform)
from .platform import lumiere_platform_gizmos
imp.reload(lumiere_platform_gizmos)
from .platform import lumiere_platform_ui
imp.reload(lumiere_platform_ui)
from .platform import lumiere_platform_materials
imp.reload(lumiere_platform_materials)
import bpy
import os
import shutil
presets_folder = bpy.utils.script_paths(subdir="presets")
addons_folder = bpy.utils.script_paths(subdir="addons")
Lumiere_presets = os.path.join(presets_folder[0], 'object', 'Lumiere_presets')
# register
##################################
def register():
addon = bpy.context.preferences.addons.get("lumiere")
lumiere_preferences.register()
lumiere_lights_ui.register()
lumiere_lights_gizmo.register()
lumiere_platform_gizmos.register()
lumiere_platform_ui.register()
lumiere_op.register()
print("Registered Lumiere")
def unregister():
lumiere_op.unregister()
lumiere_lights_ui.unregister()
lumiere_lights_gizmo.unregister()
lumiere_platform_ui.unregister()
lumiere_platform_gizmos.unregister()
lumiere_preferences.unregister()
print("Unregistered Lumiere")
if __name__ == "__main__":
register()