-
Notifications
You must be signed in to change notification settings - Fork 10
/
__init__.py
89 lines (76 loc) · 2.62 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
# -*- coding: utf-8 -*-
# <pep8-80 compliant>
# 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 3 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
# MERCHANTIBILITY 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, see <http://www.gnu.org/licenses/>.
import bpy
from . import at_array
from . import at_icons
from . import at_properties
from . import at_preset
bl_info = {
"name": "Array_Tools",
"author": "Elreenys",
"description": "Tools to create array of objects",
"blender": (2, 91, 0),
"version": (2, 1, 0),
"location": "View3D > sidebar > array tools tab",
"category": "Object",
"wiki_url": "https://github.com/Elreenys/array_tools/wiki"
}
classes = (
at_operators.OBJECT_OT_at_start,
at_operators.OBJECT_OT_at_cancel,
at_operators.OBJECT_OT_at_done,
at_operators.OBJECT_OT_fill_tr,
at_operators.OBJECT_OT_fill_sc,
at_operators.OBJECT_OT_fill_rot,
at_operators.OBJECT_OT_x360,
at_operators.OBJECT_OT_y360,
at_operators.OBJECT_OT_z360,
at_operators.OBJECT_OT_reset_tr,
at_operators.OBJECT_OT_reset_sc,
at_operators.OBJECT_OT_reset_rot,
at_operators.OBJECT_OT_reset_second,
at_operators.OBJECT_OT_error,
at_operators.OBJECT_OT_mask,
at_operators.OBJECT_OT_reset_mask,
at_operators.OBJECT_OT_modifiers,
at_operators.ANIM_OT_addkey,
at_operators.ANIM_OT_delkey,
at_operators.ANIM_OT_delallkeys,
at_operators.OBJECT_OT_reset_properties,
at_preset.AT_MT_preset_menu,
at_preset.AT_OT_AddPreset,
at_panels.UIPANEL_PT_anim,
at_panels.UIPANEL_PT_trans,
at_panels.UIPANEL_PT_rows,
at_panels.UIPANEL_PT_options,
at_panels.UIPANEL_PT_user_infos,
at_properties.ArrayTools_props,
at_panels.ArrayToolsPrefs
)
def register():
scene = bpy.types.Scene
pp = bpy.props.PointerProperty
at_icons.register_icons()
for cls in classes:
bpy.utils.register_class(cls)
scene.arraytools_prop = pp(type=at_properties.ArrayTools_props)
at_panels.update_category(None, bpy.context)
def unregister():
at_icons.unregister_icons()
del bpy.types.Scene.arraytools_prop
for cls in reversed(classes):
bpy.utils.unregister_class(cls)
if __name__ == '__main__':
register()