-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path__init__.py
More file actions
45 lines (35 loc) · 1002 Bytes
/
__init__.py
File metadata and controls
45 lines (35 loc) · 1002 Bytes
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
bl_info = {
"name": "Customize UI",
"author": "Christophe Seux",
"version": (0, 1),
"blender": (2, 79, 0),
"category": "User"}
if "bpy" in locals():
import importlib
importlib.reload(operators)
importlib.reload(panels)
importlib.reload(properties)
importlib.reload(functions)
else :
from . import operators
from . import panels
from . import properties
from . import functions
import time,bpy
from bpy.app.handlers import persistent
@persistent
def apply_UI_handler(dummy):
functions.hide_panels()
def register() :
bpy.utils.register_module(__name__)
bpy.types.INFO_HT_header.append(panels.menu_func)
bpy.app.handlers.load_post.append(apply_UI_handler)
try :
functions.hide_panels()
except :
pass
def unregister() :
functions.show_panels()
bpy.utils.unregister_module(__name__)
bpy.types.INFO_HT_header.remove(panels.menu_func)
bpy.app.handlers.load_post.remove(apply_UI_handler)