diff options
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/presets/keyconfig/maya.py | 58 |
1 files changed, 31 insertions, 27 deletions
diff --git a/release/scripts/presets/keyconfig/maya.py b/release/scripts/presets/keyconfig/maya.py index 508c226ae53..c22b2546309 100644 --- a/release/scripts/presets/keyconfig/maya.py +++ b/release/scripts/presets/keyconfig/maya.py @@ -198,7 +198,9 @@ kmi.properties.camera = True kmi = km.keymap_items.new('marker.select', 'SELECTMOUSE', 'PRESS', shift=True, ctrl=True) kmi.properties.extend = True kmi.properties.camera = True -kmi = km.keymap_items.new('marker.select_border', 'B', 'PRESS') +kmi = km.keymap_items.new('marker.select_border', 'EVT_TWEAK_S', 'ANY') +kmi.properties.extend = False +kmi = km.keymap_items.new('marker.select_border', 'EVT_TWEAK_S', 'ANY', any=True) kmi = km.keymap_items.new('marker.select_all', 'A', 'PRESS', ctrl=True) kmi = km.keymap_items.new('marker.delete', 'BACK_SPACE', 'PRESS') kmi = km.keymap_items.new('marker.rename', 'M', 'PRESS', ctrl=True) @@ -229,7 +231,7 @@ kmi = km.keymap_items.new('outliner.item_activate', 'LEFTMOUSE', 'CLICK') kmi.properties.extend = False kmi = km.keymap_items.new('outliner.item_activate', 'LEFTMOUSE', 'CLICK', shift=True) kmi.properties.extend = True -kmi = km.keymap_items.new('outliner.select_border', 'EVT_TWEAK_L', 'ANY') +kmi = km.keymap_items.new('outliner.select_border', 'EVT_TWEAK_S', 'ANY', any=True) kmi = km.keymap_items.new('outliner.item_openclose', 'RET', 'PRESS') kmi.properties.all = False kmi = km.keymap_items.new('outliner.item_openclose', 'RET', 'PRESS', shift=True) @@ -1049,10 +1051,12 @@ kmi.properties.deselect = False kmi.properties.object = False kmi = km.keymap_items.new('view3d.select_border', 'EVT_TWEAK_S', 'ANY') kmi.properties.extend = False +kmi = km.keymap_items.new('view3d.select_border', 'EVT_TWEAK_S', 'ANY', any=True) kmi = km.keymap_items.new('view3d.select_lasso', 'EVT_TWEAK_M', 'ANY') kmi.properties.extend = False -kmi = km.keymap_items.new('view3d.select_lasso', 'EVT_TWEAK_M', 'ANY', shift=True) +kmi = km.keymap_items.new('view3d.select_lasso', 'EVT_TWEAK_M', 'ANY', ctrl=True) kmi.properties.deselect = True +kmi = km.keymap_items.new('view3d.select_lasso', 'EVT_TWEAK_M', 'ANY', any=True) kmi = km.keymap_items.new('view3d.select_circle', 'Q', 'PRESS', shift=True) kmi = km.keymap_items.new('view3d.clip_border', 'B', 'PRESS', alt=True) kmi = km.keymap_items.new('view3d.zoom_border', 'B', 'PRESS', shift=True) @@ -1074,8 +1078,6 @@ kmi = km.keymap_items.new('view3d.enable_manipulator', 'E', 'PRESS') kmi.properties.rotate = True kmi = km.keymap_items.new('view3d.enable_manipulator', 'R', 'PRESS') kmi.properties.scale = True -kmi = km.keymap_items.new('view3d.select_border', 'EVT_TWEAK_S', 'ANY', shift=True) -kmi.properties.extend = True kmi = km.keymap_items.new('wm.context_toggle_enum', 'SIX', 'PRESS') kmi.properties.data_path = 'space_data.viewport_shade' kmi.properties.value_1 = 'TEXTURED' @@ -1100,10 +1102,9 @@ kmi = km.keymap_items.new('anim.channels_rename', 'LEFTMOUSE', 'PRESS', ctrl=Tru kmi = km.keymap_items.new('anim.channels_select_all_toggle', 'A', 'PRESS', ctrl=True) kmi = km.keymap_items.new('anim.channels_select_all_toggle', 'I', 'PRESS', ctrl=True) kmi.properties.invert = True -kmi = km.keymap_items.new('anim.channels_select_border', 'EVT_TWEAK_L', 'ANY') +kmi = km.keymap_items.new('anim.channels_select_border', 'EVT_TWEAK_S', 'ANY') kmi.properties.extend = False -kmi = km.keymap_items.new('anim.channels_select_border', 'EVT_TWEAK_L', 'ANY', shift=True) -kmi.properties.extend = True +kmi = km.keymap_items.new('anim.channels_select_border', 'EVT_TWEAK_S', 'ANY', any=True) kmi = km.keymap_items.new('anim.channels_delete', 'BACK_SPACE', 'PRESS') kmi = km.keymap_items.new('anim.channels_delete', 'DEL', 'PRESS') kmi = km.keymap_items.new('anim.channels_setting_toggle', 'W', 'PRESS', shift=True) @@ -1142,9 +1143,9 @@ kmi.properties.extend = False kmi = km.keymap_items.new('uv.select_loop', 'LEFTMOUSE', 'PRESS', shift=True, ctrl=True, alt=True) kmi.properties.extend = True kmi = km.keymap_items.new('uv.select_border', 'EVT_TWEAK_S', 'ANY') -kmi.properties.pinned = False kmi.properties.extend = False -kmi = km.keymap_items.new('uv.select_border', 'EVT_TWEAK_S', 'ANY', shift=True) +kmi.properties.pinned = False +kmi = km.keymap_items.new('uv.select_border', 'EVT_TWEAK_S', 'ANY', any=True) kmi.properties.pinned = False kmi = km.keymap_items.new('uv.circle_select', 'Q', 'PRESS', shift=True) kmi = km.keymap_items.new('uv.select_linked', 'L', 'PRESS', ctrl=True) @@ -1244,6 +1245,7 @@ km = kc.keymaps.new('Gesture Border', space_type='EMPTY', region_type='WINDOW', kmi = km.keymap_items.new_modal('CANCEL', 'ESC', 'PRESS', any=True) kmi = km.keymap_items.new_modal('CANCEL', 'RIGHTMOUSE', 'PRESS', any=True) kmi = km.keymap_items.new_modal('BEGIN', 'LEFTMOUSE', 'PRESS') +kmi = km.keymap_items.new_modal('DESELECT', 'LEFTMOUSE', 'RELEASE', ctrl=True) kmi = km.keymap_items.new_modal('SELECT', 'LEFTMOUSE', 'RELEASE', any=True) kmi = km.keymap_items.new_modal('SELECT', 'RIGHTMOUSE', 'RELEASE', any=True) kmi = km.keymap_items.new_modal('BEGIN', 'MIDDLEMOUSE', 'PRESS') @@ -1337,10 +1339,12 @@ kmi.properties.invert = False kmi = km.keymap_items.new('graph.select_all_toggle', 'I', 'PRESS', ctrl=True) kmi.properties.invert = True kmi = km.keymap_items.new('graph.select_border', 'EVT_TWEAK_S', 'ANY') -kmi.properties.gesture_mode = 0 kmi.properties.extend = False kmi.properties.axis_range = False kmi.properties.include_handles = False +kmi = km.keymap_items.new('graph.select_border', 'EVT_TWEAK_S', 'ANY', any=True) +kmi.properties.axis_range = False +kmi.properties.include_handles = False kmi = km.keymap_items.new('graph.select_more', 'PERIOD', 'PRESS', shift=True) kmi = km.keymap_items.new('graph.select_less', 'COMMA', 'PRESS', shift=True) kmi = km.keymap_items.new('graph.frame_jump', 'S', 'PRESS', shift=True, ctrl=True) @@ -1365,8 +1369,6 @@ kmi = km.keymap_items.new('transform.rotate', 'E', 'PRESS') kmi = km.keymap_items.new('transform.resize', 'S', 'PRESS') kmi = km.keymap_items.new('marker.add', 'M', 'PRESS') kmi = km.keymap_items.new('marker.rename', 'M', 'PRESS', ctrl=True) -kmi = km.keymap_items.new('graph.select_border', 'EVT_TWEAK_S', 'ANY', shift=True) -kmi.properties.extend = True kmi = km.keymap_items.new('graph.copy', 'C', 'PRESS', oskey=True) kmi = km.keymap_items.new('graph.paste', 'V', 'PRESS', oskey=True) kmi = km.keymap_items.new('graph.select_all_toggle', 'SELECTMOUSE', 'DOUBLE_CLICK') @@ -1446,6 +1448,8 @@ kmi.properties.extend = True kmi = km.keymap_items.new('node.select_border', 'EVT_TWEAK_S', 'ANY') kmi.properties.extend = False kmi.properties.tweak = True +kmi = km.keymap_items.new('node.select_border', 'EVT_TWEAK_S', 'ANY', any=True) +kmi.properties.tweak = True kmi = km.keymap_items.new('node.link', 'LEFTMOUSE', 'PRESS') kmi = km.keymap_items.new('node.resize', 'LEFTMOUSE', 'PRESS') kmi = km.keymap_items.new('node.links_cut', 'LEFTMOUSE', 'PRESS', ctrl=True) @@ -1497,9 +1501,6 @@ kmi = km.keymap_items.new('transform.resize', 'R', 'PRESS') kmi = km.keymap_items.new('node.move_detach_links', 'D', 'PRESS', alt=True) kmi = km.keymap_items.new('node.move_detach_links', 'EVT_TWEAK_A', 'ANY', alt=True) kmi = km.keymap_items.new('node.move_detach_links', 'EVT_TWEAK_S', 'ANY', alt=True) -kmi = km.keymap_items.new('node.select_border', 'EVT_TWEAK_L', 'ANY', shift=True) -kmi.properties.extend = True -kmi.properties.tweak = True # Map File Browser Main km = kc.keymaps.new('File Browser Main', space_type='FILE_BROWSER', region_type='WINDOW', modal=False) @@ -1515,9 +1516,9 @@ kmi.properties.extend = True kmi.properties.fill = True kmi = km.keymap_items.new('file.select_all_toggle', 'A', 'PRESS', ctrl=True) kmi = km.keymap_items.new('file.refresh', 'F', 'PRESS') -kmi = km.keymap_items.new('file.select_border', 'EVT_TWEAK_L', 'ANY') +kmi = km.keymap_items.new('file.select_border', 'EVT_TWEAK_S', 'ANY') kmi.properties.extend = False -kmi = km.keymap_items.new('file.select_border', 'EVT_TWEAK_L', 'ANY') +kmi = km.keymap_items.new('file.select_border', 'EVT_TWEAK_S', 'ANY', any=True) kmi = km.keymap_items.new('file.rename', 'LEFTMOUSE', 'PRESS', ctrl=True) kmi = km.keymap_items.new('file.highlight', 'MOUSEMOVE', 'ANY', any=True) kmi = km.keymap_items.new('file.filenum', 'NUMPAD_PLUS', 'PRESS') @@ -1558,11 +1559,10 @@ kmi = km.keymap_items.new('action.select_all_toggle', 'A', 'PRESS', ctrl=True) kmi.properties.invert = False kmi = km.keymap_items.new('action.select_all_toggle', 'I', 'PRESS', ctrl=True) kmi.properties.invert = True -kmi = km.keymap_items.new('action.select_border', 'EVT_TWEAK_L', 'ANY') +kmi = km.keymap_items.new('action.select_border', 'EVT_TWEAK_S', 'ANY') kmi.properties.extend = False kmi.properties.axis_range = False -kmi = km.keymap_items.new('action.select_border', 'EVT_TWEAK_L', 'ANY', shift=True) -kmi.properties.extend = True +kmi = km.keymap_items.new('action.select_border', 'EVT_TWEAK_S', 'ANY', any=True) kmi.properties.axis_range = False kmi = km.keymap_items.new('action.select_more', 'PERIOD', 'PRESS', shift=True) kmi = km.keymap_items.new('action.select_less', 'COMMA', 'PRESS', shift=True) @@ -1631,10 +1631,10 @@ kmi = km.keymap_items.new('nla.select_all_toggle', 'A', 'PRESS', ctrl=True) kmi.properties.invert = False kmi = km.keymap_items.new('nla.select_all_toggle', 'I', 'PRESS', ctrl=True) kmi.properties.invert = True -kmi = km.keymap_items.new('nla.select_border', 'EVT_TWEAK_L', 'ANY') +kmi = km.keymap_items.new('nla.select_border', 'EVT_TWEAK_S', 'ANY') kmi.properties.extend = False kmi.properties.axis_range = False -kmi = km.keymap_items.new('nla.select_border', 'EVT_TWEAK_L', 'ANY', shift=True) +kmi = km.keymap_items.new('nla.select_border', 'EVT_TWEAK_S', 'ANY', any=True) kmi.properties.axis_range = False kmi = km.keymap_items.new('nla.view_all', 'A', 'PRESS') kmi = km.keymap_items.new('nla.view_selected', 'F', 'PRESS') @@ -1769,8 +1769,9 @@ kmi.properties.extend = False kmi = km.keymap_items.new('sequencer.select_linked_pick', 'L', 'PRESS', shift=True) kmi.properties.extend = True kmi = km.keymap_items.new('sequencer.select_linked', 'L', 'PRESS', ctrl=True) -kmi = km.keymap_items.new('sequencer.select_border', 'EVT_TWEAK_L', 'ANY') +kmi = km.keymap_items.new('sequencer.select_border', 'EVT_TWEAK_S', 'ANY') kmi.properties.extend = False +kmi = km.keymap_items.new('sequencer.select_border', 'EVT_TWEAK_S', 'ANY', any=True) kmi = km.keymap_items.new('sequencer.select_grouped', 'G', 'PRESS', shift=True) kmi = km.keymap_items.new('wm.call_menu', 'A', 'PRESS', shift=True) kmi.properties.name = 'SEQUENCER_MT_add' @@ -1784,7 +1785,6 @@ kmi = km.keymap_items.new('transform.seq_slide', 'EVT_TWEAK_M', 'ANY') kmi = km.keymap_items.new('transform.transform', 'E', 'PRESS') kmi = km.keymap_items.new('marker.add', 'M', 'PRESS') kmi = km.keymap_items.new('marker.rename', 'M', 'PRESS', ctrl=True) -kmi = km.keymap_items.new('sequencer.select_border', 'EVT_TWEAK_L', 'ANY', shift=True) # Map Clip Editor km = kc.keymaps.new('Clip Editor', space_type='CLIP_EDITOR', region_type='WINDOW', modal=False) @@ -1833,7 +1833,9 @@ kmi = km.keymap_items.new('clip.select_all', 'A', 'PRESS', ctrl=True) kmi.properties.action = 'TOGGLE' kmi = km.keymap_items.new('clip.select_all', 'I', 'PRESS', ctrl=True) kmi.properties.action = 'INVERT' -kmi = km.keymap_items.new('clip.select_border', 'B', 'PRESS') +kmi = km.keymap_items.new('clip.select_border', 'EVT_TWEAK_S', 'ANY') +kmi.properties.extend = False +kmi = km.keymap_items.new('clip.select_border', 'EVT_TWEAK_S', 'ANY', any=True) kmi = km.keymap_items.new('clip.select_circle', 'Q', 'PRESS', shift=True) kmi = km.keymap_items.new('wm.call_menu', 'G', 'PRESS', shift=True) kmi.properties.name = 'CLIP_MT_select_grouped' @@ -1890,7 +1892,9 @@ kmi = km.keymap_items.new('clip.graph_select_all_markers', 'A', 'PRESS') kmi.properties.action = 'TOGGLE' kmi = km.keymap_items.new('clip.graph_select_all_markers', 'I', 'PRESS', ctrl=True) kmi.properties.action = 'INVERT' -kmi = km.keymap_items.new('clip.graph_select_border', 'B', 'PRESS') +kmi = km.keymap_items.new('clip.graph_select_border', 'EVT_TWEAK_S', 'ANY') +kmi.properties.extend = False +kmi = km.keymap_items.new('clip.graph_select_border', 'EVT_TWEAK_S', 'ANY', any=True) kmi = km.keymap_items.new('clip.graph_delete_curve', 'DEL', 'PRESS') kmi = km.keymap_items.new('clip.graph_delete_curve', 'BACK_SPACE', 'PRESS') kmi = km.keymap_items.new('clip.graph_delete_knot', 'DEL', 'PRESS', shift=True) |