I'm trying to reach view3d.view_qcd_slot
allegedly located inside Object Mode
category. But I'm getting KeyError: 'bpy_prop_collection[key]: key "view3d.view_qcd_slot" not found'
Here's my train of thought:
I've got this code that works for view3d.move
located inside 3D View
category.
wm = bpy.context.window_manager
wm.keyconfigs.default.keymaps['3D View'].keymap_items['view3d.move'].active = False
When I try it with my desired keybind, both .keymaps['3D View'].keymap_items['view3d.view_qcd_slot']
as well as .keymaps['Object Mode'].keymap_items['view3d.view_qcd_slot']
throw the not found
error.
Inside the Preferences window it seems that view3d.view_qcd_slot
is nested a little bit deeper, like so:
But when I exported my keybinds to a .py file to inspect it it seems they're right next to each other:
So I'm super confused why .keymaps['Object Mode'].keymap_items['view3d.view_qcd_slot']
doesn't work. Maybe it has something to do with keyconfigs.default
?