-
Notifications
You must be signed in to change notification settings - Fork 13
/
__init__.py
81 lines (57 loc) · 1.86 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
bl_info = {
"name" : "Paradox Toolkit",
"author" : "Matias Garate",
"description" : "Tools to create 3D optical illusions by Matias Garate",
"blender" : (2, 80, 0),
"version" : (1, 0, 0),
"location" : "View3D",
"warning" : "",
"category" : "Generic"
}
import bpy
#########################################################
#
# IMPORT CLASSES: OPERATORS; PANELS; MENUS; ICONS
#
#########################################################
from . operators.operators_camera_tools import *
from . operators.operators_illusion_tools import *
from . operators.operators_construct_geometry import *
from . ui.panels import *
from . ui.menus import *
from . ui.icons import *
# Classes that need to be registered
classes = [
PARADOX_OT_construct_penrose_triangle,
PARADOX_OT_construct_reutersvard_rectangle,
PARADOX_OT_construct_impossible_arch,
PARADOX_OT_construct_impossible_cube,
PARADOX_OT_construct_penrose_stair,
PARADOX_OT_add_axonometric_camera,
PARADOX_OT_align_camera_to_object,
PARADOX_OT_align_object_to_camera,
PARADOX_OT_camera_orientation_transform,
PARADOX_OT_illusion_translation,
PARADOX_OT_illusion_duplicate,
PARADOX_OT_illusion_bisect,
OBJECT_PT_paradox_geometry,
OBJECT_PT_paradox_camera,
OBJECT_PT_paradox_illusion,
VIEW3D_MT_paradox_add
]
#########################################################
#
# REGISTER AND UNREGISTER CLASSES
#
#########################################################
register_classes, unregister_classes = bpy.utils.register_classes_factory(classes)
def register():
register_classes()
icon_register()
bpy.types.VIEW3D_MT_add.append(menu_function_paradox_add)
def unregister():
unregister_classes()
icon_unregister()
bpy.types.VIEW3D_MT_add.remove(menu_function_paradox_add)
if __name__ == "__main__":
register()