Check Full BFA shortcuts: Map Grease Pencil Stroke Edit Mode

Draise's picture
Project: 
Bforartists Tracker
 
 

### Needs Work
# Map Grease Pencil Stroke Edit Mode
km = kc.keymaps.new('Grease Pencil Stroke Edit Mode', space_type='EMPTY', region_type='WINDOW', modal=False)

kmi = km.keymap_items.new('gpencil.editmode_toggle', 'TAB', 'PRESS')
kmi = km.keymap_items.new('wm.call_menu_pie', 'E', 'PRESS', key_modifier='D')
kmi_props_setattr(kmi.properties, 'name', 'GPENCIL_PIE_sculpt')
kmi = km.keymap_items.new('wm.radial_control', 'F', 'PRESS', ctrl=True)
kmi_props_setattr(kmi.properties, 'data_path_primary', 'user_preferences.edit.grease_pencil_eraser_radius')
kmi = km.keymap_items.new('gpencil.interpolate', 'E', 'PRESS', ctrl=True, alt=True)
kmi = km.keymap_items.new('gpencil.interpolate_sequence', 'E', 'PRESS', shift=True, ctrl=True)
kmi = km.keymap_items.new('gpencil.brush_paint', 'LEFTMOUSE', 'PRESS', key_modifier='E')
kmi_props_setattr(kmi.properties, 'wait_for_input', False)
kmi = km.keymap_items.new('gpencil.brush_paint', 'LEFTMOUSE', 'PRESS', ctrl=True, key_modifier='E')
kmi_props_setattr(kmi.properties, 'wait_for_input', False)
kmi = km.keymap_items.new('gpencil.brush_paint', 'LEFTMOUSE', 'PRESS', shift=True, key_modifier='E')
kmi_props_setattr(kmi.properties, 'wait_for_input', False)
kmi = km.keymap_items.new('wm.radial_control', 'F', 'PRESS', shift=True)
kmi_props_setattr(kmi.properties, 'data_path_primary', 'tool_settings.gpencil_sculpt.brush.strength')
kmi = km.keymap_items.new('wm.radial_control', 'F', 'PRESS')
kmi_props_setattr(kmi.properties, 'data_path_primary', 'tool_settings.gpencil_sculpt.brush.size')
kmi = km.keymap_items.new('gpencil.select_all', 'A', 'PRESS')
kmi_props_setattr(kmi.properties, 'action', 'TOGGLE')
kmi = km.keymap_items.new('gpencil.select_all', 'I', 'PRESS', ctrl=True)
kmi_props_setattr(kmi.properties, 'action', 'INVERT')
kmi = km.keymap_items.new('gpencil.select_circle', 'G', 'PRESS')
kmi = km.keymap_items.new('gpencil.select_border', 'B', 'PRESS')
kmi = km.keymap_items.new('gpencil.select_lasso', 'EVT_TWEAK_A', 'ANY', ctrl=True)
kmi_props_setattr(kmi.properties, 'deselect', False)
kmi = km.keymap_items.new('gpencil.select_lasso', 'EVT_TWEAK_A', 'ANY', shift=True, ctrl=True)
kmi_props_setattr(kmi.properties, 'deselect', True)
kmi = km.keymap_items.new('gpencil.select_lasso', 'EVT_TWEAK_A', 'ANY', ctrl=True, alt=True)
kmi_props_setattr(kmi.properties, 'deselect', False)
kmi = km.keymap_items.new('gpencil.select_lasso', 'EVT_TWEAK_A', 'ANY', shift=True, ctrl=True, alt=True)
kmi_props_setattr(kmi.properties, 'deselect', True)
kmi = km.keymap_items.new('gpencil.select', 'SELECTMOUSE', 'PRESS')
kmi = km.keymap_items.new('gpencil.select', 'SELECTMOUSE', 'PRESS', shift=True)
kmi_props_setattr(kmi.properties, 'extend', True)
kmi_props_setattr(kmi.properties, 'toggle', True)
kmi = km.keymap_items.new('gpencil.select', 'SELECTMOUSE', 'PRESS', alt=True)
kmi_props_setattr(kmi.properties, 'entire_strokes', True)
kmi = km.keymap_items.new('gpencil.select_linked', 'L', 'PRESS')
kmi = km.keymap_items.new('gpencil.select_linked', 'L', 'PRESS', ctrl=True)
kmi = km.keymap_items.new('gpencil.select_grouped', 'G', 'PRESS', shift=True)
kmi = km.keymap_items.new('gpencil.select_more', 'NUMPAD_PLUS', 'PRESS', ctrl=True)
kmi = km.keymap_items.new('gpencil.select_less', 'NUMPAD_MINUS', 'PRESS', ctrl=True)
kmi = km.keymap_items.new('gpencil.duplicate_move', 'D', 'PRESS', shift=True)
kmi = km.keymap_items.new('wm.call_menu', 'DEL', 'PRESS')
kmi_props_setattr(kmi.properties, 'name', 'VIEW3D_MT_edit_gpencil_delete')
#kmi = km.keymap_items.new('gpencil.dissolve', 'X', 'PRESS', ctrl=True) - double shortcut removed - by Draise
kmi = km.keymap_items.new('gpencil.dissolve', 'DEL', 'PRESS', ctrl=True)
kmi = km.keymap_items.new('gpencil.active_frames_delete_all', 'DEL', 'PRESS', shift=True) #changed from X to DEL - by Draise
kmi = km.keymap_items.new('gpencil.stroke_join', 'J', 'PRESS', ctrl=True)
kmi = km.keymap_items.new('gpencil.stroke_join', 'J', 'PRESS', shift=True, ctrl=True)
kmi_props_setattr(kmi.properties, 'type', 'JOINCOPY')
kmi = km.keymap_items.new('gpencil.copy', 'C', 'PRESS', ctrl=True)
kmi = km.keymap_items.new('gpencil.paste', 'V', 'PRESS', ctrl=True)
kmi = km.keymap_items.new('gpencil.convert', 'C', 'PRESS', alt=True)
kmi = km.keymap_items.new('gpencil.reveal', 'H', 'PRESS', alt=True)
kmi = km.keymap_items.new('gpencil.hide', 'H', 'PRESS')
kmi_props_setattr(kmi.properties, 'unselected', False)
kmi = km.keymap_items.new('gpencil.hide', 'H', 'PRESS', shift=True)
kmi_props_setattr(kmi.properties, 'unselected', True)
kmi = km.keymap_items.new('gpencil.move_to_layer', 'M', 'PRESS')
kmi = km.keymap_items.new('transform.translate', 'W', 'PRESS')
kmi = km.keymap_items.new('transform.translate', 'EVT_TWEAK_S', 'ANY')
kmi = km.keymap_items.new('transform.rotate', 'E', 'PRESS')
kmi = km.keymap_items.new('transform.resize', 'R', 'PRESS')
kmi = km.keymap_items.new('transform.mirror', 'M', 'PRESS', ctrl=True)
kmi = km.keymap_items.new('transform.bend', 'W', 'PRESS', shift=True)
kmi = km.keymap_items.new('transform.tosphere', 'S', 'PRESS', shift=True, alt=True)
kmi = km.keymap_items.new('transform.shear', 'S', 'PRESS', shift=True, ctrl=True, alt=True)
kmi = km.keymap_items.new('transform.transform', 'S', 'PRESS', alt=True)
kmi_props_setattr(kmi.properties, 'mode', 'GPENCIL_SHRINKFATTEN')
##Added from Blender - by Draise
#kmi = km.keymap_items.new('wm.call_menu', 'W', 'PRESS') ##- useless menu removed from BFA
#kmi_props_setattr(kmi.properties, 'name', 'GPENCIL_MT_gpencil_edit_specials')
#kmi = km.keymap_items.new('wm.call_menu', 'S', 'PRESS', shift=True) #- to be replaced with BFA Pie Menu
#kmi_props_setattr(kmi.properties, 'name', 'GPENCIL_MT_snap')
kmi = km.keymap_items.new('gpencil.selection_opacity_toggle', 'H', 'PRESS', ctrl=True)
kmi = km.keymap_items.new('gpencil.layer_isolate', 'NUMPAD_ASTERIX', 'PRESS')
kmi = km.keymap_items.new('gpencil.brush_select', 'ONE', 'PRESS') #may cause conflicts with BFA
kmi_props_setattr(kmi.properties, 'index', 0)
kmi = km.keymap_items.new('gpencil.brush_select', 'TWO', 'PRESS') #may cause conflicts with BFA
kmi_props_setattr(kmi.properties, 'index', 1)
kmi = km.keymap_items.new('gpencil.brush_select', 'THREE', 'PRESS') #may cause conflicts with BFA
kmi_props_setattr(kmi.properties, 'index', 2)
kmi = km.keymap_items.new('gpencil.brush_select', 'FOUR', 'PRESS') #may cause conflicts with BFA
kmi_props_setattr(kmi.properties, 'index', 3)
kmi = km.keymap_items.new('gpencil.brush_select', 'FIVE', 'PRESS') #may cause conflicts with BFA
kmi_props_setattr(kmi.properties, 'index', 4)
kmi = km.keymap_items.new('gpencil.brush_select', 'SIX', 'PRESS') #may cause conflicts with BFA
kmi_props_setattr(kmi.properties, 'index', 5)
kmi = km.keymap_items.new('gpencil.brush_select', 'SEVEN', 'PRESS') #may cause conflicts with BFA
kmi_props_setattr(kmi.properties, 'index', 6)
kmi = km.keymap_items.new('gpencil.brush_select', 'EIGHT', 'PRESS') #may cause conflicts with BFA
kmi_props_setattr(kmi.properties, 'index', 7)
kmi = km.keymap_items.new('gpencil.brush_select', 'NINE', 'PRESS') #may cause conflicts with BFA
kmi_props_setattr(kmi.properties, 'index', 8)
kmi = km.keymap_items.new('gpencil.brush_select', 'ZERO', 'PRESS') #may cause conflicts with BFA
kmi_props_setattr(kmi.properties, 'index', 9)
kmi = km.keymap_items.new('wm.context_cycle_enum', 'O', 'PRESS', shift=True)
kmi_props_setattr(kmi.properties, 'data_path', 'tool_settings.proportional_edit_falloff')
kmi_props_setattr(kmi.properties, 'wrap', True)
kmi = km.keymap_items.new('wm.context_toggle_enum', 'O', 'PRESS')
kmi_props_setattr(kmi.properties, 'data_path', 'tool_settings.proportional_edit')
kmi_props_setattr(kmi.properties, 'value_1', 'DISABLED')
kmi_props_setattr(kmi.properties, 'value_2', 'ENABLED')
kmi = km.keymap_items.new('wm.context_toggle_enum', 'O', 'PRESS', alt=True)
kmi_props_setattr(kmi.properties, 'data_path', 'tool_settings.proportional_edit')
kmi_props_setattr(kmi.properties, 'value_1', 'DISABLED')
kmi_props_setattr(kmi.properties, 'value_2', 'CONNECTED')

First task: Check the Map Grease Pencil Stroke Edit Mode  BFA shortcuts with Blenders with use in BFA.
Third task: doube check to see if all Blender shortcuts are added correctly. 

Ultimately, Fix any conflict with new proposals and preserve BFA's.

Current status: Numbers may be conflicting with some things, and the delete entries need to be cleaned up.

 
Status: 
Closed (duplicate)
Priority: 
Normal
Category: 
Task
Component: 
Code
Assigned: 
Reporter: 
Created: 
Sat, 01/20/2018 - 15:05
Updated: 
Sun, 03/11/2018 - 08:30

Comments

15
Draise's picture

 
 

Frist conflict:
D for Focus on Selection (3D View) and D for draw and D+E for sculpt strokes (and other D combo conflicts with grease pencil in other areas).

I still am not happy with D for focus when people are so used to and logically use F for Focus. Index finger, common control... It has created quite a large conflict with the Grease Pencil. We could change all grease pencil to say..S?

Wondering how to solve this one.......

Fix1:
Change Grease Pencil shortcut to another key, interface wide. ALT+Lclick? S? (taken). Priority, preserve D for focus as in BFA. No idea which.... and it would be a weird solution. Both Blender and BFA have D for grease pencil.

Fix 2:
Change Radius and Focus. Make R radius and F focus, and keep D for drawing Grease Pencil. It is consisten with other 3D software, easy to learn, logical, and the only conflict would be scaling in Grease Pencil mode, which would need a combo D+R for example. I have tested this already.

Fix 3:
Revert and remove D as focus to Numpad0/PERIOD to the old clanky method removing hand from mouse and keyboard position to focus... multiple times per minute......

 
Draise's picture

 
 

To make a third solution, any solution... I have to make changes to priority Blender (to something new and weird, as you say) or work on the BFA system - which I agree. The restriction of preservation goal on both parties is making the job difficult though..  I have to make new and weird solutions to make a merge work.

The only new thing we are adding in the hotkeys (everything else I'm not adding as you request) -  which we have already disucussed - is the View to Selected interface wide for obvious reasons, for the artist; and the alternative map of Lclick timeline - which also has been discussed. We made a compromise to make it D, but it has created a conflict, so we have to revisit this. I was suggesting F for focus like most software, R for radius, a logical "scale" depending on the mode, then we can solve this merge conflict issue with the Grease Pencil interface wide. We need to revist this.

 

 
Draise's picture

Another conflict (BFA conflict, not Blender related).
E as Rotate selection conflicts with E+Lclick for stroke sculpting or D+E to bring up the Sculpt Pie, or any other Sculpt drawing tool key combo.

Draise's picture

Yeah, the Pie menu plans, I'm green for that and will try work on that, or invest in a private developer to help me out there.

Concerning making GP sculpting, the D or D+E or E alone (for sculpting a grease pencil stroke) conflict with rotate hotkey of BFA. Should I make a seperate bug task for this?

Draise's picture

 
 

It's not a menu.. it's staple GP brush feature - sculpting your strokes with grab, smooth, etc. You press a key combo to initiate the sculpting mode. It's broken currently. It has been E (in GP stroke edit mode), but that conflicts with rotate selection.

Should have been more clear. There are two conflicts: the pie menu D+E and the Lclick+E for sculpting GP strokes - both conflict with E for rotate selection. 

EDIT: works with no selection but with GP Stroke Edit mode activated, but has the issue with Rotate Selection when you have a selection made. Meaning you can only sculpt with nothing selected. Issue not present in Blender.

kmi = km.keymap_items.new('gpencil.brush_paint', 'LEFTMOUSE', 'PRESS', key_modifier='E')
kmi_props_setattr(kmi.properties, 'wait_for_input', False)

 

 
Reiner's picture

Hmmm, thanks for the closer description. Now i see what you mean. At least the Grease Pencil mode with stroke edit is reproduceable here. For Pie menu, i have never worked with it I-m so happy

Good catch Smile

This needs indeed each a own task. Could you please keep them in mind? As told, i am currently in the process of upgrading the page to Drupal 8. And everything you write here may vanish with the move when things goes wrong.

Solution, hmm, do we have a free hotkey somewhere? :/

EDIT, for GP sculpting: scale seems to be a double entry, works with R and S. But should not work with S, since we have mapped it to R. So S could become free. But this needs to be checked first.

Reiner's picture

EDIT, made the hotkey for grease pencil conflict a own task now:

https://www.bforartists.de/content/hotkey-conflict-grease-pencil-sculpt-...

Draise would you be so kind to create a task and document the other conflict with the pie menu?

Draise's picture

Sure. Been backing up my messages elsewhere (copy paste). I'll make a new task to resolve the Pie Menu for Grease Pencil.

Draise's picture

Ok, checked functionality, also found issues to be fixed with BFA and removed redundant shortcuts. May need to be reflected in the default BFA shortcuts.

Changes and tasks done:

  • CTRL+Lclick for lasso select (in Grease Pencil Edit Mode) is not functional in BFA. Task here.
  • Changed SHIFT+X to SHIFT+DEL (BFA default)
  • Swapped CTRL+DEL and DEL to make the deletion process more consistent with Bforartists (first DEL function: stress free dissolve, with CTRL+DEL to open the delete options floating panel)
  • Removed CTRL+L as redundant entry (BFA default)
  • Removed CTRL+E, SHIFT+E as redundant entries (BFA default)
  • Changed brush_paint to S from D. Task here
  • Found out some conflicts and functional issues with D for View Selected and Grease Pencil Pie Menus D+S, D+W and D+Q (Pie menus not available in BFA for some reason)
  • Double checked Blender shortcuts

Final code:
 


### Practically Done
# Map Grease Pencil Stroke Edit Mode
km = kc.keymaps.new('Grease Pencil Stroke Edit Mode', space_type='EMPTY', region_type='WINDOW', modal=False)

kmi = km.keymap_items.new('gpencil.editmode_toggle', 'TAB', 'PRESS')
kmi = km.keymap_items.new('wm.call_menu_pie', 'S', 'PRESS', key_modifier='D') #changed to S from D, conflicts with BFA D for Focus - by Draise, feature is removed from BFA
kmi_props_setattr(kmi.properties, 'name', 'GPENCIL_PIE_sculpt')
kmi = km.keymap_items.new('wm.radial_control', 'F', 'PRESS', ctrl=True)
kmi_props_setattr(kmi.properties, 'data_path_primary', 'user_preferences.edit.grease_pencil_eraser_radius')
kmi = km.keymap_items.new('gpencil.interpolate', 'E', 'PRESS', ctrl=True, alt=True)
kmi = km.keymap_items.new('gpencil.interpolate_sequence', 'E', 'PRESS', shift=True, ctrl=True)
kmi = km.keymap_items.new('gpencil.brush_paint', 'LEFTMOUSE', 'PRESS', key_modifier='S') #Changed to S from D - by Draise
kmi_props_setattr(kmi.properties, 'wait_for_input', False)
dkmi = km.keymap_items.new('gpencil.brush_paint', 'LEFTMOUSE', 'PRESS', ctrl=True, key_modifier='E') #Redundant
kmi_props_setattr(kmi.properties, 'wait_for_input', False)
kmi = km.keymap_items.new('gpencil.brush_paint', 'LEFTMOUSE', 'PRESS', shift=True, key_modifier='E') #Redundant
kmi_props_setattr(kmi.properties, 'wait_for_input', False)
kmi = km.keymap_items.new('wm.radial_control', 'F', 'PRESS', shift=True)
kmi_props_setattr(kmi.properties, 'data_path_primary', 'tool_settings.gpencil_sculpt.brush.strength')
kmi = km.keymap_items.new('wm.radial_control', 'F', 'PRESS')
kmi_props_setattr(kmi.properties, 'data_path_primary', 'tool_settings.gpencil_sculpt.brush.size')
kmi = km.keymap_items.new('gpencil.select_all', 'A', 'PRESS')
kmi_props_setattr(kmi.properties, 'action', 'TOGGLE')
kmi = km.keymap_items.new('gpencil.select_all', 'I', 'PRESS', ctrl=True)
kmi_props_setattr(kmi.properties, 'action', 'INVERT')
kmi = km.keymap_items.new('gpencil.select_circle', 'G', 'PRESS')
kmi = km.keymap_items.new('gpencil.select_border', 'B', 'PRESS')
kmi = km.keymap_items.new('gpencil.select_lasso', 'EVT_TWEAK_A', 'ANY', ctrl=True) #Seems to not be a functional system
kmi_props_setattr(kmi.properties, 'deselect', False)
kmi = km.keymap_items.new('gpencil.select_lasso', 'EVT_TWEAK_A', 'ANY', shift=True, ctrl=True)
kmi_props_setattr(kmi.properties, 'deselect', True)
kmi = km.keymap_items.new('gpencil.select_lasso', 'EVT_TWEAK_A', 'ANY', ctrl=True, alt=True)
kmi_props_setattr(kmi.properties, 'deselect', False)
kmi = km.keymap_items.new('gpencil.select_lasso', 'EVT_TWEAK_A', 'ANY', shift=True, ctrl=True, alt=True)
kmi_props_setattr(kmi.properties, 'deselect', True)
kmi = km.keymap_items.new('gpencil.select', 'SELECTMOUSE', 'PRESS')
kmi = km.keymap_items.new('gpencil.select', 'SELECTMOUSE', 'PRESS', shift=True)
kmi_props_setattr(kmi.properties, 'extend', True)
kmi_props_setattr(kmi.properties, 'toggle', True)
kmi = km.keymap_items.new('gpencil.select', 'SELECTMOUSE', 'PRESS', alt=True)
kmi_props_setattr(kmi.properties, 'entire_strokes', True)
kmi = km.keymap_items.new('gpencil.select_linked', 'L', 'PRESS')
#kmi = km.keymap_items.new('gpencil.select_linked', 'L', 'PRESS', ctrl=True) #redundant - by Draise
kmi = km.keymap_items.new('gpencil.select_grouped', 'G', 'PRESS', shift=True) #has a floating menu - Draise
kmi = km.keymap_items.new('gpencil.select_more', 'NUMPAD_PLUS', 'PRESS', ctrl=True)
kmi = km.keymap_items.new('gpencil.select_less', 'NUMPAD_MINUS', 'PRESS', ctrl=True)
kmi = km.keymap_items.new('gpencil.duplicate_move', 'D', 'PRESS', shift=True)
kmi = km.keymap_items.new('wm.call_menu', 'DEL', 'PRESS', ctrl=True) #changed to CTRL+DEL to bring up the menu, BFA consistitent - by Draise
kmi_props_setattr(kmi.properties, 'name', 'VIEW3D_MT_edit_gpencil_delete')
#kmi = km.keymap_items.new('gpencil.dissolve', 'X', 'PRESS', ctrl=True) - double shortcut removed - by Draise
kmi = km.keymap_items.new('gpencil.dissolve', 'DEL', 'PRESS') #changed to just DEL to be consistent with BFA deletion - by DRAISE
kmi = km.keymap_items.new('gpencil.active_frames_delete_all', 'DEL', 'PRESS', shift=True) #changed from X to DEL - by Draise
kmi = km.keymap_items.new('gpencil.stroke_join', 'J', 'PRESS', ctrl=True)
kmi = km.keymap_items.new('gpencil.stroke_join', 'J', 'PRESS', shift=True, ctrl=True)
kmi_props_setattr(kmi.properties, 'type', 'JOINCOPY')
kmi = km.keymap_items.new('gpencil.copy', 'C', 'PRESS', ctrl=True)
kmi = km.keymap_items.new('gpencil.paste', 'V', 'PRESS', ctrl=True)
kmi = km.keymap_items.new('gpencil.convert', 'C', 'PRESS', alt=True)
kmi = km.keymap_items.new('gpencil.reveal', 'H', 'PRESS', alt=True)
kmi = km.keymap_items.new('gpencil.hide', 'H', 'PRESS')
kmi_props_setattr(kmi.properties, 'unselected', False)
kmi = km.keymap_items.new('gpencil.hide', 'H', 'PRESS', shift=True)
kmi_props_setattr(kmi.properties, 'unselected', True)
kmi = km.keymap_items.new('gpencil.move_to_layer', 'M', 'PRESS')
kmi = km.keymap_items.new('transform.translate', 'W', 'PRESS')
kmi = km.keymap_items.new('transform.translate', 'EVT_TWEAK_S', 'ANY')
kmi = km.keymap_items.new('transform.rotate', 'E', 'PRESS')
kmi = km.keymap_items.new('transform.resize', 'R', 'PRESS')
kmi = km.keymap_items.new('transform.mirror', 'M', 'PRESS', ctrl=True)
kmi = km.keymap_items.new('transform.bend', 'W', 'PRESS', shift=True)
kmi = km.keymap_items.new('transform.tosphere', 'S', 'PRESS', shift=True, alt=True) #maybe could be R - Draise
kmi = km.keymap_items.new('transform.shear', 'S', 'PRESS', shift=True, ctrl=True, alt=True) #maybe could be R - Draise
kmi = km.keymap_items.new('transform.transform', 'S', 'PRESS', alt=True) #maybe could be R - Draise
kmi_props_setattr(kmi.properties, 'mode', 'GPENCIL_SHRINKFATTEN')
##Added from Blender - by Draise
#kmi = km.keymap_items.new('wm.call_menu', 'W', 'PRESS') ##- useless menu removed from BFA
#kmi_props_setattr(kmi.properties, 'name', 'GPENCIL_MT_gpencil_edit_specials')
#kmi = km.keymap_items.new('wm.call_menu', 'S', 'PRESS', shift=True) #- to be replaced with BFA Pie Menu
#kmi_props_setattr(kmi.properties, 'name', 'GPENCIL_MT_snap')
kmi = km.keymap_items.new('gpencil.selection_opacity_toggle', 'H', 'PRESS', ctrl=True)
kmi = km.keymap_items.new('gpencil.layer_isolate', 'NUMPAD_ASTERIX', 'PRESS')
kmi = km.keymap_items.new('gpencil.brush_select', 'ONE', 'PRESS')
kmi_props_setattr(kmi.properties, 'index', 0)
kmi = km.keymap_items.new('gpencil.brush_select', 'TWO', 'PRESS')
kmi_props_setattr(kmi.properties, 'index', 1)
kmi = km.keymap_items.new('gpencil.brush_select', 'THREE', 'PRESS')
kmi_props_setattr(kmi.properties, 'index', 2)
kmi = km.keymap_items.new('gpencil.brush_select', 'FOUR', 'PRESS')
kmi_props_setattr(kmi.properties, 'index', 3)
kmi = km.keymap_items.new('gpencil.brush_select', 'FIVE', 'PRESS')
kmi_props_setattr(kmi.properties, 'index', 4)
kmi = km.keymap_items.new('gpencil.brush_select', 'SIX', 'PRESS')
kmi_props_setattr(kmi.properties, 'index', 5)
kmi = km.keymap_items.new('gpencil.brush_select', 'SEVEN', 'PRESS')
kmi_props_setattr(kmi.properties, 'index', 6)
kmi = km.keymap_items.new('gpencil.brush_select', 'EIGHT', 'PRESS')
kmi_props_setattr(kmi.properties, 'index', 7)
kmi = km.keymap_items.new('gpencil.brush_select', 'NINE', 'PRESS')
kmi_props_setattr(kmi.properties, 'index', 8)
kmi = km.keymap_items.new('gpencil.brush_select', 'ZERO', 'PRESS')
kmi_props_setattr(kmi.properties, 'index', 9)
kmi = km.keymap_items.new('wm.context_cycle_enum', 'O', 'PRESS', shift=True)
kmi_props_setattr(kmi.properties, 'data_path', 'tool_settings.proportional_edit_falloff')
kmi_props_setattr(kmi.properties, 'wrap', True)
kmi = km.keymap_items.new('wm.context_toggle_enum', 'O', 'PRESS')
kmi_props_setattr(kmi.properties, 'data_path', 'tool_settings.proportional_edit')
kmi_props_setattr(kmi.properties, 'value_1', 'DISABLED')
kmi_props_setattr(kmi.properties, 'value_2', 'ENABLED')
kmi = km.keymap_items.new('wm.context_toggle_enum', 'O', 'PRESS', alt=True)
kmi_props_setattr(kmi.properties, 'data_path', 'tool_settings.proportional_edit')
kmi_props_setattr(kmi.properties, 'value_1', 'DISABLED')
kmi_props_setattr(kmi.properties, 'value_2', 'CONNECTED')

 

Draise's picture

Status: Active » Needs review
Reiner's picture

Looking good Smile

I would suggest to add the vital changes to the current standard bfa keymap too. And attach it here or in another thread.

Reiner's picture

What tasks do we have for the bfa keymap here?

Draise's picture

No tasks, any changes to the Standard is reflected both in the Full BFA Map and the Standard BFA Map due to the full map only being appended code to the footer of each map section. When the Full BFA Map is complete, all I have to do is remove the appended code and the Standard will have the updated code, and I upload two files to be merged into the next release. You can relax there.

Everything will be commented on final upload and I'll list everything we've been working on there on the final release - right now we are just going through conflict revision, and have found 3 BFA Standard conflicts with 1 potentially fixed and around 45% of the Blender vs BFA conflict revision reviewed and double checked. 

 

Reiner's picture

Will not port this one to Github, since there is no task defined yet. At least not to my understanding. And i don't know how to port this piece here. The one part is part of the Full keymap. And the other parrt(s) is/are already a own task.

Draise, just in case i have misunderstood something here, you can always create a new task in the Github tracker.

Reiner's picture

Status: Needs review » Closed (duplicate)