i really want to organize my workflow as i already setup all my CTRL as a Popout Call Menu or Context Menu and i want to assign Hotkey for this one as well so the workflow will be quickly and i want to recenter the text because of poor eyesight when reading text… as a tablet user it will definitely reduce clicks
import bpy
class SimpleCustomMenu(bpy.types.Menu):
bl_label = ""
bl_idname = "OBJECT_MT_simple_custom_menu"
def draw(self, context):
layout = self.layout
layout.operator_enum("object.modifier_add", "type")
def register():
bpy.utils.register_class(SimpleCustomMenu)
def unregister():
bpy.utils.unregister_class(SimpleCustomMenu)
if __name__ == "__main__":
register()
# The menu can also be called from scripts
bpy.ops.wm.call_menu(name=SimpleCustomMenu.bl_idname)