-
Notifications
You must be signed in to change notification settings - Fork 1
/
__init__.py
78 lines (59 loc) · 1.68 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
bl_info = {
"name" : "blender-bangumi",
"author" : "掌控-物质",
"description" : "能让你在blender更方便的追(mo)番(yu)",
"blender" : (2, 80, 0),
"version" : (1, 3, 2),
"location" : "",
"warning" : "",
"category" : "Bangumi"
}
# import bpy
from .ui import *
from .operators import *
from .utils import *
from .bangumi_spider import *
from .bilibili_spider import *
import bpy.utils.previews
classes = [bangumi_props,
Bilibili_Spider,
Bangumi_Spider,
Open_bilibili_url,
Open_bangumi_url,
Change_calender,
Next_Day,
Previous_Day,
bangumi_n_father_panel,
Bangumi_Settings,
Bangumi_Calendar,
Imgapi_Refresh,
Switch_to_ImgEditor,
rand_img_father_panel,
Rand_Img_Settings,
Rand_Img_Pic,
ImgEditor_RandImg_Refresh,
Quick_Switch,
imgeditor_randimg_father,
Refresh_Yiyan,
yiyan_father_panel,
Yiyan_Settings,
Yiyan,
Nothing,
Copy_text]
def register():
# add_property()
ui_register()
imgapi_register()
operator_register()
for class_ in classes:
bpy.utils.register_class(class_)
bpy.types.Scene.bangumi_property = bpy.props.PointerProperty(type=bangumi_props)
def unregister():
for pcoll in bangumi_cover.values():
bpy.utils.previews.remove(pcoll)
bangumi_cover.clear()
for pcoll in other_pic.values():
bpy.utils.previews.remove(pcoll)
other_pic.clear()
for class_ in classes:
bpy.utils.unregister_class(class_)