-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path__init__.py
53 lines (34 loc) · 1.27 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
bl_info = {
"name": "nozzleboss",
"description": "G-code Importer/Editor/Re-Exporter",
"author": "Heinz Löpmeier",
"version": (0, 0, 1),
"blender": (3, 0, 0),
"location": "3D View > nozzleboss",
"category": "Import-Export"
}
if "bpy" in locals():
import importlib
importlib.reload(utils)
importlib.reload(parser)
importlib.reload(nozzleboss)
else:
from . import utils
from . import parser
from . import nozzleboss
import bpy
from bpy.props import PointerProperty
def register():
bpy.utils.register_class(nozzleboss.NOZZLEBOSS_PT_Panel)
bpy.utils.register_class(nozzleboss.gcode_settings)
bpy.utils.register_class(nozzleboss.WM_OT_gcode_import)
bpy.utils.register_class(nozzleboss.WM_OT_gcode_export)
bpy.types.Scene.nozzleboss = bpy.props.PointerProperty(type= nozzleboss.gcode_settings)
def unregister():
bpy.utils.unregister_class(nozzleboss.NOZZLEBOSS_PT_Panel)
bpy.utils.unregister_class(nozzleboss.gcode_settings)
bpy.utils.unregister_class(nozzleboss.WM_OT_gcode_import)
bpy.utils.unregister_class(nozzleboss.WM_OT_gcode_export)
del bpy.types.Scene.nozzleboss
if __name__ == "__main__":
register()