-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path__init__.py
225 lines (202 loc) · 6.8 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
# BEGIN LICENSE & COPYRIGHT BLOCK.
#
# Copyright (C) 2022-2024 Kiril Strezikozin
# BakeMaster Blender Add-on (version 2.7.0)
#
# This file is a part of BakeMaster Blender Add-on, a plugin for texture
# baking in open-source Blender 3d modelling software.
# The author can be contacted at <kirilstrezikozin@gmail.com>.
#
# Redistribution and use for any purpose including personal, educational, and
# commercial, with or without modification, are permitted provided
# that the following conditions are met:
#
# 1. The current acquired License allows copies/redistributions of this
# software be made to UNLIMITED END USER SEATS (OPEN SOURCE LICENSE).
# 2. Redistributions of this source code or partial usage of this source code
# must follow the terms of this license and retain the above copyright
# notice, and the following disclaimer.
# 3. The name of the author may be used to endorse or promote products derived
# from this software. In such a case, a prior written permission from the
# author is required.
#
# This program is free software and 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. IN NO EVENT SHALL THE
# AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# You should have received a copy of the GNU General Public License in the
# GNU.txt file along with this program. If not,
# see <http://www.gnu.org/licenses/>.
#
# END LICENSE & COPYRIGHT BLOCK.
bl_info = {
"name": "BakeMaster",
"description": "Bake various PBR, Masks, and Cycles maps with ease and "
"comfort",
"author": "Kiril Strezikozin (aka kemplerart)",
"version": (2, 7, 0),
"blender": (2, 83, 0),
"location": "View3D > Sidebar > BakeMaster",
"warning": "",
"wiki_url": "https://bakemaster-blender-addon.readthedocs.io/en/latest/",
"tracker_url": "https://github.com/KirilStrezikozin/BakeMaster-Blender-Addon/issues/new/choose",
"category": "Material"
}
if "bpy" in locals():
from .ui_panel import *
from .operators import *
from .properties import *
from .operator_bake import *
from .presets import *
from .shader import BM_OT_Shader_Cage
from .decal import BM_OT_DECAL_Enable, BM_OT_DECAL_View
from . import ui_panel
from . import operators
from . import properties
from . import operator_bake
from . import presets
from . import shader
from . import decal
import importlib
importlib.reload(ui_panel)
importlib.reload(operators)
importlib.reload(properties)
importlib.reload(operator_bake)
importlib.reload(presets)
importlib.reload(shader)
importlib.reload(decal)
else:
from .ui_panel import *
from .operators import *
from .properties import *
from .operator_bake import *
from .presets import *
from .shader import BM_OT_Shader_Cage
from .decal import BM_OT_DECAL_Enable, BM_OT_DECAL_View
import bpy
classes = (
BM_PREFS_Addon_Preferences,
BM_ALEP_UL_Objects_Item,
BM_ALEP_UL_Maps_Item,
BM_CAUC_UL_Objects_Item,
BM_FMR_UL_Item,
BM_UL_Table_of_Objects_Item,
BM_UL_Table_of_Objects_Item_Highpoly,
BM_UL_Table_of_Maps_Item,
BM_UL_Table_of_Maps_Item_Highpoly,
BM_UL_Table_of_Objects_Item_ChannelPack,
BM_UL_Table_of_TextureSets,
BM_UL_TextureSets_Objects_Table_Item,
BM_UL_TextureSets_Objects_Table_Item_SubItem,
BM_UL_Table_of_Objects_Item_BatchNamingTable_Item,
BM_PT_Main,
BM_PT_Item,
BM_PT_Item_Object,
BM_PT_Item_Maps,
BM_PT_Item_Output,
BM_PT_TextureSets,
BM_PT_Bake,
BM_PT_Help,
BM_OT_Preset_MarkDefault,
BM_OT_ExecutePreset,
BM_PT_FULL_OBJECT_Presets,
BM_MT_FULL_OBJECT_Presets,
BM_PT_OBJECT_Presets,
BM_MT_OBJECT_Presets,
BM_PT_DECAL_Presets,
BM_MT_DECAL_Presets,
BM_PT_HL_Presets,
BM_MT_HL_Presets,
BM_PT_UV_Presets,
BM_MT_UV_Presets,
BM_PT_CSH_Presets,
BM_MT_CSH_Presets,
BM_PT_OUT_Presets,
BM_MT_OUT_Presets,
BM_PT_FULL_MAP_Presets,
BM_MT_FULL_MAP_Presets,
BM_PT_MAP_Presets,
BM_MT_MAP_Presets,
BM_PT_CHNLP_Presets,
BM_MT_CHNLP_Presets,
BM_PT_BAKE_Presets,
BM_MT_BAKE_Presets,
BM_PT_CM_Presets,
BM_MT_CM_Presets,
BM_OT_Table_of_Objects,
BM_OT_Table_of_Objects_Add,
BM_OT_Table_of_Objects_Remove,
BM_OT_Table_of_Objects_Refresh,
BM_OT_Table_of_Objects_Trash,
BM_OT_ITEM_Highpoly_Table_Add,
BM_OT_ITEM_Highpoly_Table_Remove,
BM_OT_MAP_Highpoly_Table_Add,
BM_OT_MAP_Highpoly_Table_Remove,
BM_OT_ITEM_ChannelPack_Table_Add,
BM_OT_ITEM_ChannelPack_Table_Remove,
BM_OT_ITEM_ChannelPack_Table_Trash,
BM_OT_SCENE_TextureSets_Table_Add,
BM_OT_SCENE_TextureSets_Table_Remove,
BM_OT_SCENE_TextureSets_Table_Trash,
BM_OT_SCENE_TextureSets_Objects_Table_Add,
BM_OT_SCENE_TextureSets_Objects_Table_Remove,
BM_OT_SCENE_TextureSets_Objects_Table_Trash,
BM_OT_SCENE_TextureSets_Objects_Table_InvertSubItems,
# BM_OT_ITEM_BatchNamingTable_Add,
# BM_OT_ITEM_BatchNamingTable_Remove,
# BM_OT_ITEM_BatchNamingTable_Trash,
BM_OT_ITEM_BatchNaming_Preview,
BM_OT_ITEM_Maps,
BM_OT_ITEM_Bake,
BM_OT_ApplyLastEditedProp_SelectAll,
BM_OT_ApplyLastEditedProp_InvertSelection,
BM_OT_ApplyLastEditedProp,
BM_OT_CreateArtificialUniContainer_DeselectAll,
BM_OT_CreateArtificialUniContainer,
BM_OT_ITEM_and_MAP_Format_MatchResolution,
BM_OT_CM_ApplyRules,
BM_OT_ReportMessage,
BM_OT_Help,
BM_OT_FULL_OBJECT_Preset_Add,
BM_OT_OBJECT_Preset_Add,
BM_OT_DECAL_Preset_Add,
BM_OT_HL_Preset_Add,
BM_OT_UV_Preset_Add,
BM_OT_CSH_Preset_Add,
BM_OT_OUT_Preset_Add,
BM_OT_FULL_MAP_Preset_Add,
BM_OT_MAP_Preset_Add,
BM_OT_CHNLP_Preset_Add,
BM_OT_BAKE_Preset_Add,
BM_OT_CM_Preset_Add,
BM_OT_Shader_Cage,
BM_OT_DECAL_Enable,
BM_OT_DECAL_View,
BM_ALEP_Object,
BM_ALEP_Map,
BM_CAUC_Object,
BM_FMR_Item,
BM_Map_Highpoly,
BM_Map,
BM_Object_Highpoly,
BM_Object_ChannelPack,
BM_Object,
BM_SceneProps_TextureSet_Object_SubObject,
BM_SceneProps_TextureSet_Object,
BM_SceneProps_TextureSet,
BM_SceneProps)
def register():
for cls in classes:
bpy.utils.register_class(cls)
bpy.types.Scene.bm_table_of_objects = bpy.props.CollectionProperty(type=BM_Object)
bpy.types.Scene.bm_props = bpy.props.PointerProperty(type=BM_SceneProps)
BM_Presets_FolderSetup()
def unregister():
for cls in reversed(classes):
bpy.utils.unregister_class(cls)
del bpy.types.Scene.bm_table_of_objects
del bpy.types.Scene.bm_props
if __name__ == "__main__":
register()