Customizable keyboard shortcuts for modal tools #8
Labels
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: SMagnusson/light-painter#8
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pasted from GitHub:
Due to a reverted commit in Blender's code, add-ons cannot define their own keymaps for modal operators (granted, it seems like it didn't fully work beforehand anyway). For Light Painter, the controls are all in keymap.py for those who need to edit them (and feel free to create PRs if you feel it would benefit others!). But to be more accessible for users, options are limited:
Alt
,Shift
, andCtrl
keys). The upside is that this is direct, and all possible key options can be generated frombpy.types.Event.bl_rna.properties["type"].enum_items
. The downside is this won't be accessible in the keymap preferences, but in the Light Painter add-on preferences.It might be worth checking with Blender team to see if this feature is planned or someone is already working on it. If so, then it's a matter of setting up the modal keymap once the feature is merged.
Since it could not be found in Blender's issues or tasks, I made a post on RightClickSelect: blender.community/c/rightclickselect/koWX/. If you would like this feature built into Blender (along with supporting other add-on developers who use modals), please vote here.
Made some "dummy" keymaps that at least allow users to modify them with a reasonable interface. The post I linked is still relevant; my add-on isn't the only one that would benefit from modal-specific keymaps.