Update Pie Menu's Addon (Keymap List) #48296

Closed
opened 2016-04-28 06:09:57 +02:00 by Brendon Murphy · 5 comments
Member

Hi, this is an update to add the Hot Key List to Pie menu's Addons Preferences.
The benefit of this is greater accessibility & usability.
pies hotkeys.jpg
File: ui_pie_menus_official.py
Change from current adds this code: line 354 to 376

class PieMenuPrefs(bpy.types.AddonPreferences):
    bl_idname = __name__

    bpy.types.Scene.Enable_Tab_01 = bpy.props.BoolProperty(default=False)

    def draw(self, context):
        layout = self.layout
        layout.prop(context.scene, "Enable_Tab_01", text="Hotkey List", icon="INFO")   
        if context.scene.Enable_Tab_01:
            row = layout.row()
            layout.label(text="Object Mode: 'TAB', 'PRESS'")
            layout.label(text="Shade: 'Z', 'PRESS'")
            layout.label(text="View: 'Q', 'PRESS'")
            layout.label(text="Manipulator: 'SPACE', 'PRESS', ctrl=True")
            layout.label(text="Pivot: 'PERIOD', 'PRESS'")
            layout.label(text="Snap: 'TAB', 'PRESS', ctrl=True, shift=True")
            layout.label(text="Grease Pencil Stroke Edit Mode: 'TAB', 'PRESS'")
            layout.label(text="Marker: 'Q', 'PRESS'")
            layout.label(text="Clipsetup: 'W', 'PRESS'")
            layout.label(text="Tracking: 'E', 'PRESS'")
            layout.label(text="Solver: 'S', 'PRESS', shift=True")
            layout.label(text="Reconstruction: 'W', 'PRESS', shift=True")
            layout.label(text="Timecontrol: 'A', 'PRESS', oskey=True")

Note: https://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.72/UI/Pie_Menus mentions: Pie menus will completely override the operators that were previously assigned on those keys. There is, however, a sticky operator under development that will allow using both operators and pies on the same key.

I believe the complete override can be easily fixed in the keymap registration. this should be done regardless of sticky key operators in the future.

Hi, this is an update to add the Hot Key List to Pie menu's Addons Preferences. The benefit of this is greater accessibility & usability. ![pies hotkeys.jpg](https://archive.blender.org/developer/F307351/pies_hotkeys.jpg) File: [ui_pie_menus_official.py](https://archive.blender.org/developer/F307353/ui_pie_menus_official.py) Change from current adds this code: line 354 to 376 ``` class PieMenuPrefs(bpy.types.AddonPreferences): bl_idname = __name__ bpy.types.Scene.Enable_Tab_01 = bpy.props.BoolProperty(default=False) def draw(self, context): layout = self.layout layout.prop(context.scene, "Enable_Tab_01", text="Hotkey List", icon="INFO") if context.scene.Enable_Tab_01: row = layout.row() layout.label(text="Object Mode: 'TAB', 'PRESS'") layout.label(text="Shade: 'Z', 'PRESS'") layout.label(text="View: 'Q', 'PRESS'") layout.label(text="Manipulator: 'SPACE', 'PRESS', ctrl=True") layout.label(text="Pivot: 'PERIOD', 'PRESS'") layout.label(text="Snap: 'TAB', 'PRESS', ctrl=True, shift=True") layout.label(text="Grease Pencil Stroke Edit Mode: 'TAB', 'PRESS'") layout.label(text="Marker: 'Q', 'PRESS'") layout.label(text="Clipsetup: 'W', 'PRESS'") layout.label(text="Tracking: 'E', 'PRESS'") layout.label(text="Solver: 'S', 'PRESS', shift=True") layout.label(text="Reconstruction: 'W', 'PRESS', shift=True") layout.label(text="Timecontrol: 'A', 'PRESS', oskey=True") ``` Note: https://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.72/UI/Pie_Menus mentions: Pie menus will completely override the operators that were previously assigned on those keys. There is, however, a sticky operator under development that will allow using both operators and pies on the same key. I believe the complete override can be easily fixed in the keymap registration. this should be done regardless of sticky key operators in the future.
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Brendon Murphy self-assigned this 2016-04-28 06:09:57 +02:00
Author
Member

Added subscriber: @BrendonMurphy

Added subscriber: @BrendonMurphy
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Author
Member

committed 88a7449d24
closing as resolved

committed 88a7449d24 closing as resolved
Author
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#48296
No description provided.