Industry Compatible Keymap: Remove JKL keys temp-keymap-industry-compat
authorWilliam Reynish <billrey@me.com>
Wed, 10 Apr 2019 10:12:50 +0000 (12:12 +0200)
committerWilliam Reynish <billrey@me.com>
Wed, 10 Apr 2019 10:12:50 +0000 (12:12 +0200)
This wasn't working enough how video editors work.

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

index a766bb4..8ce38d4 100644 (file)
@@ -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,
 )
 
 
index cfbb9de..db1573f 100644 (file)
@@ -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),