[Bf-blender-cvs] [6c78d3a9dd8] temp-keymap-industry-compat: Industry Compatible Keymap: Remove JKL keys

William Reynish noreply at git.blender.org
Wed Apr 10 12:12:52 CEST 2019


Commit: 6c78d3a9dd85e79e188dafc6c94950a8e33df484
Author: William Reynish
Date:   Wed Apr 10 12:12:50 2019 +0200
Branches: temp-keymap-industry-compat
https://developer.blender.org/rB6c78d3a9dd85e79e188dafc6c94950a8e33df484

Industry Compatible Keymap: Remove JKL keys

This wasn't working enough how video editors work.

===================================================================

M	release/scripts/presets/keyconfig/industry_compatible.py
M	release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py

===================================================================

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),



More information about the Bf-blender-cvs mailing list