How to add toggles for my addon in the preferences

Hi all!

I made an addon for my custom keymap, I want to add, inside the Preferences tab (where you activate/deactivate the addons) the option to toggle every single keymap.

In this way I can also provide a clear index of all the shortcut I changed.

Thanks!

example from meshmachine addon↓

You can also open context menu in the addon preferences you like and use “Edit Source” (make sure you have “Developer Extras” enabled in Preferences → Interface). It will open the ui file in the text editor and you’ll be see how exactly it is implemented.

image

3 Likes