-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdebug_keys.py
More file actions
25 lines (21 loc) · 823 Bytes
/
debug_keys.py
File metadata and controls
25 lines (21 loc) · 823 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
import bpy
def debug_keyconfigs():
wm = bpy.context.window_manager
print("-" * 30)
print(f"Active Keyconfig: {wm.keyconfigs.active.name}")
configs = [
("Active", wm.keyconfigs.active),
("User", wm.keyconfigs.user),
("Addon", wm.keyconfigs.addon),
]
for name, config in configs:
print(f"\nChecking {name} config ({config.name})...")
count = 0
for km in config.keymaps:
for kmi in km.keymap_items:
if kmi.idname.startswith("iops."):
count += 1
if count <= 5: # Print first 5 found
print(f" Found: {kmi.idname} in {km.name} (Active: {kmi.active})")
print(f"Total 'iops' items in {name}: {count}")
debug_keyconfigs()