forked from Hancapo/VichoTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__init__.py
67 lines (58 loc) · 1.55 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
import bpy
from .ytd.ytd_helper import *
from .misc.misc_funcs import *
from .vicho_operators import *
from .vicho_properties import *
from .vicho_panels import *
from .ytd.folders2ytd import *
from .ytd.operators import *
from .ytd.ui import *
from .vicho_misc import VichoToolsAddonProperties
bl_info = {
"name": "Vicho's Misc Tools",
"author": "MrVicho13",
"version": (0, 3, 4),
"blender": (3, 0, 0),
"location": "View3D",
"description": "Some tools by Vicho",
"warning": "",
"wiki_url": "",
"category": "Vicho Tools",
}
vicho_classes = [
ExpSelObjsFile,
ResetObjTransRot,
ExportMLOTransFile,
DeleteEmptyObj,
VICHO_PT_MISC1_PANEL,
VichoMloToolsPanel,
VichoObjectToolsPanel,
PasteObjectTransformFromPickedObject,
MloYmapFileBrowser,
VichoCreateVC,
Vicho_TextureDictionaryPanel,
MeshGroup,
ImageString,
YtdList,
YtdItem,
VichoToolsAddonProperties,
YTDLIST_OT_add,
YTDLIST_OT_remove,
YTDLIST_OT_reload_all,
YTDLIST_OT_add_to_ytd,
YTDLIST_OT_assign_ytd_field_from_list,
ExportYTDFolders,
ExportYTDFiles,
]
def register():
for _class in vicho_classes:
bpy.utils.register_class(_class)
bpy.types.Scene.ytd_list = bpy.props.CollectionProperty(type=YtdItem)
bpy.types.Scene.ytd_active_index = bpy.props.IntProperty()
def unregister():
for _class in vicho_classes:
bpy.utils.unregister_class(_class)
del bpy.types.Scene.ytd_list
del bpy.types.Scene.ytd_active_index
if __name__ == '__main__':
register()