|
|
@@ -1,68 +0,0 @@
|
|
1
|
|
-# -*- coding: utf-8 -*-
|
|
2
|
|
-
|
|
3
|
|
-# This program is free software; you can redistribute it and/or modify
|
|
4
|
|
-# it under the terms of the GNU General Public License as published by
|
|
5
|
|
-# the Free Software Foundation; either version 3 of the License, or
|
|
6
|
|
-# (at your option) any later version.
|
|
7
|
|
-#
|
|
8
|
|
-# This program is distributed in the hope that it will be useful, but
|
|
9
|
|
-# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
|
-# MERCHANTIBILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
11
|
|
-# General Public License for more details.
|
|
12
|
|
-#
|
|
13
|
|
-# You should have received a copy of the GNU General Public License
|
|
14
|
|
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
15
|
|
-import bpy
|
|
16
|
|
-
|
|
17
|
|
-from . import cfg
|
|
18
|
|
-from . import at_interface
|
|
19
|
|
-
|
|
20
|
|
-bl_info = {
|
|
21
|
|
- "name": "Array_tools",
|
|
22
|
|
- "author": "Elreenys",
|
|
23
|
|
- "description": "Tools to create array of objects",
|
|
24
|
|
- "blender": (2, 80, 0),
|
|
25
|
|
- "version": (1, 2, 1),
|
|
26
|
|
- "location": "View3D > sidebar > array tools tab",
|
|
27
|
|
- "category": "Object"
|
|
28
|
|
-}
|
|
29
|
|
-
|
|
30
|
|
-classes = (
|
|
31
|
|
- at_operators.OBJECT_OT_at_start,
|
|
32
|
|
- at_operators.OBJECT_OT_at_cancel,
|
|
33
|
|
- at_operators.OBJECT_OT_at_done,
|
|
34
|
|
- at_operators.OBJECT_OT_fill_tr,
|
|
35
|
|
- at_operators.OBJECT_OT_fill_sc,
|
|
36
|
|
- at_operators.OBJECT_OT_fill_rot,
|
|
37
|
|
- at_operators.OBJECT_OT_x360,
|
|
38
|
|
- at_operators.OBJECT_OT_y360,
|
|
39
|
|
- at_operators.OBJECT_OT_z360,
|
|
40
|
|
- at_operators.OBJECT_OT_reset_tr,
|
|
41
|
|
- at_operators.OBJECT_OT_reset_sc,
|
|
42
|
|
- at_operators.OBJECT_OT_reset_rot,
|
|
43
|
|
- at_operators.OBJECT_OT_reset_second,
|
|
44
|
|
- at_operators.OBJECT_OT_error,
|
|
45
|
|
- at_panel.UIPANEL_PT_trans,
|
|
46
|
|
- at_panel.UIPANEL_PT_rows,
|
|
47
|
|
- at_panel.UIPANEL_PT_options,
|
|
48
|
|
- at_interface.ArrayTools_props
|
|
49
|
|
-)
|
|
50
|
|
-
|
|
51
|
|
-
|
|
52
|
|
-def register():
|
|
53
|
|
- scene = bpy.types.Scene
|
|
54
|
|
- pp = bpy.props.PointerProperty
|
|
55
|
|
-
|
|
56
|
|
- for cls in classes:
|
|
57
|
|
- bpy.utils.register_class(cls)
|
|
58
|
|
- scene.arraytools_prop = pp(type=at_interface.ArrayTools_props)
|
|
59
|
|
-
|
|
60
|
|
-
|
|
61
|
|
-def unregister():
|
|
62
|
|
- del bpy.types.Scene.arraytools_prop
|
|
63
|
|
- for cls in reversed(classes):
|
|
64
|
|
- bpy.utils.unregister_class(cls)
|
|
65
|
|
-
|
|
66
|
|
-
|
|
67
|
|
-if __name__ == '__main__':
|
|
68
|
|
- register()
|