Skip to content

Commit

Permalink
Default keyboard shortcut changed to F8
Browse files Browse the repository at this point in the history
  • Loading branch information
SietseB committed Feb 7, 2023
1 parent f7a37d4 commit ac37150
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
9 changes: 4 additions & 5 deletions preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,14 +369,13 @@ def set_default_preferences():
pref.mode = td.modes[i]

# When there is no user defined keyboard shortcut,
# assign Ctrl Tab / Tab
# assign F8
if not addon_prefs.kmi_is_user_set:
addon_prefs.kmi_key = 'TAB'
addon_prefs.kmi_alt = False
addon_prefs.kmi_key = 'F8'
addon_prefs.kmi_ctrl = False
addon_prefs.kmi_shift = False
addon_prefs.kmi_alt = False
addon_prefs.kmi_oskey = False
# Use Tab for pie menu or Ctrl Tab?
addon_prefs.kmi_ctrl = not bpy.context.window_manager.keyconfigs.active.preferences.use_v3d_tab_menu


# Get the tool preferences
Expand Down
7 changes: 3 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
Using Grease Pencil and switching a lot between modes and tools? Then GP Tool Wheel can speed up your workflow: it combines mode and tool selection in one delicious wheel.


## How to use the wheel
By default you can invoke the tool wheel with the pie menu shortcut: `Tab` or `Ctrl`-`Tab`. You can change this shortcut easily, by [customizing your wheel](#customize-your-wheel).
## How to use the wheel – press <kbd>F8</kbd>
By default you can invoke the tool wheel with the shortcut <kbd>F8</kbd>. You can change this shortcut easily by [customizing your wheel](#customize-your-wheel).

The wheel only appears when there is an active Grease Pencil object.

Expand All @@ -21,9 +21,8 @@ Selecting a tool needs no explanation: click on an icon and you are good to go.
## Customize your wheel
For the add-on preferences, go to `Edit` > `Preferences...` > `Add-ons` and look for `3D View: GP Tool Wheel`. Click on the arrow on the left.

Here you can compose your ideal, tailor made wheel. Perhaps you want to change it in a kind of 'Quick favorites' menu, with only the modes and tools you often use.
Here you can compose your ideal, tailor made wheel. Perhaps you want to change it in a kind of 'Quick favorites' menu, with only the modes and tools you often use. Or assign <kbd>Tab</kbd> as shortcut, replacing the default pie menu.

It's recommended to change the keyboard shortcut when you don't include all the modes in your wheel.

> **Circle of GP life:** defining the order of modes
>
Expand Down
2 changes: 1 addition & 1 deletion tool_wheel_draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def draw(self, context):

# Draw active mode or tool name as hint
# Note: this must be done last, because blf messes with the alpha state
blf.size(0, 11, 72)
blf.size(0, 11)
if self.show_hints and active_box is not None:
# Draw rectangle in center of wheel
dx = self.center_x - self.HINT_WIDTH * 0.5
Expand Down

0 comments on commit ac37150

Please sign in to comment.