4.3 Compatibility & Editable Hotkeys #1

Merged
Demeter Dzadik merged 4 commits from demeters_branch into main 2024-08-15 12:47:59 +02:00
16 changed files with 30 additions and 39 deletions
Showing only changes of commit 70ec0ebfdc - Show all commits

View File

@ -131,7 +131,7 @@ def draw_kmi(km, kmi, layout):
km_name = km.name
if km_name == 'Armature':
km_name = 'Armature Edit'
row.label(text=f'{kmi.name} ({km_name})')
row.label(text=f'{km_name} - {kmi.name}')
row = split.row(align=True)
sub = row.row(align=True)
@ -140,7 +140,7 @@ def draw_kmi(km, kmi, layout):
if kmi.is_user_modified:
row.operator(
"preferences.keyitem_restore", text="", icon='BACK'
"preferences.keyitem_restore", text="", icon='LOOP_BACK'
).item_id = kmi.id
def print_kmi(kmi):

View File

@ -11,10 +11,10 @@ from bpy.props import EnumProperty
from .hotkeys import register_hotkey
# Pie Align - Alt + X
# Align Pie - Alt + X
class PIE_MT_Align(Menu):
bl_idname = "PIE_MT_align"
bl_label = "Pie Align"
bl_label = "Align Pie"
def draw(self, context):
layout = self.layout

View File

@ -9,12 +9,9 @@ from bpy.types import (
)
from .hotkeys import register_hotkey
# Pie Animation
class PIE_MT_PieAnimation(Menu):
bl_idname = "PIE_MT_animation"
bl_label = "Pie Animation"
bl_label = "Animation Pie"
def draw(self, context):
layout = self.layout
@ -46,7 +43,6 @@ class PIE_MT_PieAnimation(Menu):
pie.menu("VIEW3D_MT_object_animation", text="Keyframe Menu", icon="KEYINGSET")
# Insert Auto Keyframe
class PIE_OT_InsertAutoKeyframe(Operator):
bl_idname = "insert.autokeyframe"
bl_label = "Insert Auto Keyframe"

View File

@ -10,10 +10,9 @@ from bpy.types import (
from .hotkeys import register_hotkey
# Pie Apply Transforms - Ctrl + A
class PIE_MT_PieApplyTransforms(Menu):
bl_idname = "PIE_MT_applytransforms"
bl_label = "Pie Apply Transforms"
bl_label = "Apply Transforms Pie"
def draw(self, context):
layout = self.layout
@ -41,10 +40,9 @@ class PIE_MT_PieApplyTransforms(Menu):
pie.menu("PIE_MT_clear_menu", text="Clear Transform Menu")
# Clear Menu
class PIE_MT_ClearMenu(Menu):
bl_idname = "PIE_MT_clear_menu"
bl_label = "Clear Menu"
bl_label = "Clear Transforms"
def draw(self, context):
layout = self.layout
@ -55,10 +53,9 @@ class PIE_MT_ClearMenu(Menu):
layout.operator("object.origin_clear", text="Clear Origin", icon='NONE')
# Clear all
class PIE_OT_ClearAll(Operator):
bl_idname = "clear.all"
bl_label = "Clear All"
bl_label = "Clear All Transforms"
bl_description = "Clear All Transforms"
bl_options = {'REGISTER', 'UNDO'}

View File

@ -7,10 +7,10 @@ from bpy.types import Menu
from .hotkeys import register_hotkey
# Pie Save/Open
# Save/Open Pie
class PIE_MT_Load_Defaults(Menu):
bl_idname = "PIE_MT_loaddefaults"
bl_label = "Save Defaults"
bl_label = "Defaults Pie"
def draw(self, context):
layout = self.layout

View File

@ -7,10 +7,9 @@ from bpy.types import Menu
from .hotkeys import register_hotkey
# Pie Delete - X
class PIE_MT_PieDelete(Menu):
bl_idname = "PIE_MT_delete"
bl_label = "Pie Delete"
bl_label = "Delete Pie"
def draw(self, context):
layout = self.layout

View File

@ -15,7 +15,7 @@ from .hotkeys import register_hotkey
class PIE_MT_AreaPieEditor(Menu):
bl_idname = "PIE_MT_editor"
bl_label = "Editor Switch"
bl_label = "Editor Switch Pie"
def draw(self, context):
layout = self.layout

View File

@ -57,10 +57,9 @@ class PIE_OT_WManupulators(Operator):
return self.execute(context)
# Pie Manipulators - Ctrl + Space
class PIE_MT_Manipulator(Menu):
bl_idname = "PIE_MT_manipulator"
bl_label = "Pie Manipulator"
bl_label = "Manipulator Pie"
def draw(self, context):
layout = self.layout

View File

@ -194,7 +194,7 @@ class PIE_MT_ObjectEditMode(Menu):
"""Modes Switch"""
bl_idname = "PIE_MT_objecteditmode"
bl_label = "Mode Switch (Ctrl Tab)"
bl_label = "Mode Switch Pie"
def draw(self, context):
layout = self.layout

View File

@ -220,7 +220,7 @@ class PIE_OT_SetOriginToSelected_edit(Operator):
# Pie Origin/Pivot - Shift + S
class PIE_MT_OriginPivot(Menu):
bl_idname = "ORIGIN_MT_pivotmenu"
bl_label = "Origin Menu"
bl_label = "Origin Pie"
def draw(self, context):
layout = self.layout

View File

@ -290,7 +290,7 @@ class PIE_OT_ProportionalInverseSquareEdt(Operator):
# Pie ProportionalEditObj - O
class PIE_MT_ProportionalObj(Menu):
bl_idname = "PIE_MT_proportional_obj"
bl_label = "Pie Proportional Obj"
bl_label = "Proportional Editing Pie"
def draw(self, context):
layout = self.layout
@ -324,7 +324,7 @@ class PIE_MT_ProportionalObj(Menu):
# Pie ProportionalEditEdt - O
class PIE_MT_ProportionalEdt(Menu):
bl_idname = "PIE_MT_proportional_edt"
bl_label = "Pie Proportional Edit"
bl_label = "Proportional Editing Pie"
def draw(self, context):
layout = self.layout
@ -358,7 +358,7 @@ class PIE_MT_ProportionalEdt(Menu):
# Pie ProportionalEditEdt - O
class PIE_MT_ProportionalMore(Menu):
bl_idname = "PIE_MT_proportional_more"
bl_label = "Pie Proportional More"
bl_label = "More Falloff Shapes"
def draw(self, context):
layout = self.layout
@ -373,7 +373,7 @@ class PIE_MT_ProportionalMore(Menu):
# Pie ProportionalEditEdt2
class PIE_MT_proportionalmoreob(Menu):
bl_idname = "PIE_MT_proportional_moreob"
bl_label = "Pie Proportional More"
bl_label = "Proportional Falloffs"
def draw(self, context):
layout = self.layout

View File

@ -9,10 +9,10 @@ from bpy.types import Menu
from .hotkeys import register_hotkey
# Pie Save/Open
# Save/Open Pie
class PIE_MT_SaveOpen(Menu):
bl_idname = "PIE_MT_saveopen"
bl_label = "Pie Save/Open"
bl_label = "Save/Open Pie"
@staticmethod
def _save_as_mainfile_calc_incremental_name():

View File

@ -9,10 +9,10 @@ from pathlib import Path
from .hotkeys import register_hotkey
# Pie Sculpt Pie Menus - W
# Sculpt Pie Pie Menus - W
class PIE_MT_sculpt_brush_select(Menu):
bl_idname = "PIE_MT_sculpt_brush_select"
bl_label = "Pie Sculpt"
bl_label = "Sculpt Pie"
def draw(self, context):
global brush_icons
@ -42,7 +42,7 @@ class PIE_MT_sculpt_brush_select(Menu):
)
# Pie Sculpt 2
# Sculpt Pie 2
class PIE_MT_sculpt_brush_select_misc(Menu):
bl_idname = "PIE_MT_sculpt_brush_select_misc"
bl_label = "More Brushes"
@ -69,7 +69,7 @@ class PIE_MT_sculpt_brush_select_misc(Menu):
# 3 - BOTTOM - RIGHT
# Pie Sculpt Three
# Sculpt Pie Three
class PIE_MT_sculpt_brush_select_grab(Menu):
bl_idname = "PIE_MT_sculpt_brush_select_grab"
bl_label = "Grab Brushes"

View File

@ -10,7 +10,7 @@ from .hotkeys import register_hotkey
# Pie Selection Object Mode - A
class PIE_MT_SelectionsMore(Menu):
bl_idname = "PIE_MT_selectionsmore"
bl_label = "Pie Selections Object Mode"
bl_label = "Selection Pie"
def draw(self, context):
layout = self.layout
@ -47,7 +47,7 @@ class PIE_MT_SelectionsMore(Menu):
class PIE_MT_SelectionsOM(Menu):
bl_idname = "PIE_MT_selectionsom"
bl_label = "Pie Selections Object Mode"
bl_label = "Selection Pie"
def draw(self, context):
layout = self.layout

View File

@ -7,10 +7,10 @@ from bpy.types import Menu
from .hotkeys import register_hotkey
# Pie Shading - Z
# Shading Pie - Z
class PIE_MT_ShadingView(Menu):
bl_idname = "PIE_MT_shadingview"
bl_label = "Pie Shading"
bl_label = "Shading Pie"
def draw(self, context):
layout = self.layout

View File

@ -49,7 +49,7 @@ class PIE_OT_LockTransforms(Operator):
# Pie views numpad - Q
class PIE_MT_ViewNumpad(Menu):
bl_idname = "PIE_MT_viewnumpad"
bl_label = "Pie Views Menu"
bl_label = "Views Pie"
def draw(self, context):
layout = self.layout