-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
46 lines (35 loc) · 1.31 KB
/
__init__.py
File metadata and controls
46 lines (35 loc) · 1.31 KB
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
from . import importer, exporter, icn_options, gizmo
from .ops import validate
# class CreateICNOperator(bpy.types.Operator):
# bl_idname = "object.create_icn"
# bl_label = "Create ICN"
# bl_options = {'REGISTER', 'UNDO'}
# def execute(self, context):
# bpy.ops.object.select_by_type(type='LIGHT')
# bpy.ops.object.delete()
# context.scene.camera.location = (0, -10.0, 0)
# context.scene.camera.rotation_euler = (math.pi/2, 0, 0)
# return {"FINISHED"}
# def invoke(self, context, event):
# return context.window_manager.invoke_confirm(self, event, message="This will delete all items in the scene. Continue?", icon='WARNING')
# class VIEW3D_PT_icn_panel(bpy.types.Panel):
# bl_label = "ICN Panel"
# bl_idname = "VIEW3D_PT_icn_panel"
# bl_space_type = 'VIEW_3D'
# bl_region_type = 'UI'
# bl_category = 'ICN'
# def draw(self, context):
# layout = self.layout
# layout.operator(CreateICNOperator.bl_idname, text="Create ICN")
def register():
importer.register()
exporter.register()
icn_options.register()
validate.register()
gizmo.register()
def unregister():
importer.unregister()
exporter.unregister()
icn_options.unregister()
validate.unregister()
gizmo.unregister()