-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
27 lines (23 loc) · 923 Bytes
/
__init__.py
File metadata and controls
27 lines (23 loc) · 923 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
import bpy
from .operators import register_association, export_nodegroup, import_nodegroup, drop_handler
def register():
register_association.register()
export_nodegroup.register()
export_nodegroup.register_menu()
drop_handler.register()
# Actually run the file association registration
print("[XWZ] Running file association registration...")
try:
success = register_association.perform_file_association()
if success:
print("File association registration completed successfully!")
else:
print("File association registration failed!")
except Exception as e:
print(f"Error during file association registration: {e}")
def unregister():
drop_handler.unregister()
export_nodegroup.unregister_menu()
export_nodegroup.unregister()
register_association.unregister()
print("[XWZ] Node File Link addon unregistered.")