diff options
author | William Reynish <billrey@me.com> | 2019-04-10 13:12:50 +0300 |
---|---|---|
committer | William Reynish <billrey@me.com> | 2019-04-10 13:12:50 +0300 |
commit | 6c78d3a9dd85e79e188dafc6c94950a8e33df484 (patch) | |
tree | b3d454d83428b8b27cbc81b41ac2d8d4b96cff01 | |
parent | 11696882e20648828f7bd0972b772d2baf52ebec (diff) |
Industry Compatible Keymap: Remove JKL keystemp-keymap-industry-compat
This wasn't working enough how video editors work.
-rw-r--r-- | release/scripts/presets/keyconfig/industry_compatible.py | 52 | ||||
-rw-r--r-- | release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py | 15 |
2 files changed, 0 insertions, 67 deletions
diff --git a/release/scripts/presets/keyconfig/industry_compatible.py b/release/scripts/presets/keyconfig/industry_compatible.py index a766bb4174a..8ce38d4b40e 100644 --- a/release/scripts/presets/keyconfig/industry_compatible.py +++ b/release/scripts/presets/keyconfig/industry_compatible.py @@ -30,61 +30,9 @@ class IC_KEYMAP_OT_mesh_select_mode(bpy.types.Operator): return{'FINISHED'} -# JKL controls for playback - -class IC_KEYMAP_OT_jkl_controls(bpy.types.Operator): - bl_idname = "ic_keymap.jkl_controls" - bl_label = "jkl Controls" - bl_description = "jkl Controls" - - mode: bpy.props.EnumProperty( - name="JKL Mode", - items=( - ('J', "J", "Play Backwards"), - ('K', "K", "Pause"), - ('L', "L", "Play Forwards"), - ('KJ', "L", "Step Frame Back"), - ('KL', "L", "Step Frame Forward"), - ), - ) - - def execute(self, context): - scr = bpy.context.screen - scops = bpy.ops.screen - - if self.mode == "J": - if scr.is_animation_playing == True: - scops.animation_play() - scops.animation_play(reverse=True) - else: - scops.animation_play(reverse=True) - elif self.mode == "L": - if scr.is_animation_playing == True: - scops.animation_play() - scops.animation_play() - else: - scops.animation_play() - elif self.mode == "K": - if scr.is_animation_playing == True: - scops.animation_play() - elif self.mode == "KJ": - if scr.is_animation_playing == True: - scops.animation_play() - bpy.context.scene.frame_set(bpy.context.scene.frame_current - 1) - elif self.mode == "KL": - if scr.is_animation_playing == True: - scops.animation_play() - bpy.context.scene.frame_set(bpy.context.scene.frame_current + 1) - else: - if scr.is_animation_playing == True: - scops.animation_play() - - return {'FINISHED'} - classes = ( IC_KEYMAP_OT_mesh_select_mode, - IC_KEYMAP_OT_jkl_controls, ) diff --git a/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py b/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py index cfbb9dea486..db1573f5105 100644 --- a/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py +++ b/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py @@ -2624,13 +2624,6 @@ def km_pose(params): ("anim.keyframe_delete_v3d", {"type": 'S', "value": 'PRESS', "alt": True}, None), ("anim.keying_set_active_set", {"type": 'S', "value": 'PRESS', "shift": True, "ctrl": True, "alt": True}, None), - # JKL - ("ic_keymap.jkl_controls", {"type": 'J', "value": 'PRESS'}, - {"properties": [("mode", 'J')]}), - ("ic_keymap.jkl_controls", {"type": 'L', "value": 'PRESS'}, - {"properties": [("mode", 'L')]}), - ("ic_keymap.jkl_controls", {"type": 'K', "value": 'PRESS'}, - {"properties": [("mode", 'K')]}), op_menu("VIEW3D_MT_pose_context_menu", {"type": 'RIGHTMOUSE', "value": 'PRESS'}), op_menu("VIEW3D_MT_pose_context_menu", {"type": 'LEFTMOUSE', "value": 'PRESS', "ctrl": True}), # Tools @@ -2700,14 +2693,6 @@ def km_object_mode(params): {"properties": [("type", 'Scaling')]}), ("anim.keyframe_delete_v3d", {"type": 'S', "value": 'PRESS', "alt": True}, None), ("anim.keying_set_active_set", {"type": 'S', "value": 'PRESS', "shift": True, "ctrl": True, "alt": True}, None), - # JKL - ("ic_keymap.jkl_controls", {"type": 'J', "value": 'PRESS'}, - {"properties": [("mode", 'J')]}), - ("ic_keymap.jkl_controls", {"type": 'L', "value": 'PRESS'}, - {"properties": [("mode", 'L')]}), - ("ic_keymap.jkl_controls", {"type": 'K', "value": 'PRESS'}, - {"properties": [("mode", 'K')]}), - op_menu("VIEW3D_MT_object_context_menu", {"type": 'RIGHTMOUSE', "value": 'PRESS'}), op_menu("VIEW3D_MT_object_context_menu", {"type": 'LEFTMOUSE', "value": 'PRESS', "ctrl": True}), ("object.move_to_collection", {"type": 'G', "value": 'PRESS', "ctrl": True}, None), |