Post #3065: Hi, @dpdp

πŸ“‹ Metadata

  • Author: roaoao
  • Date: 2020-03-10 12:11:51
  • Type: answer
  • Quality Score: 7/10
  • Reply to: post_03064

🏷️ Tags

macro hotkeys advanced unsolved

  • Macro Editor
  • Python Scripting

πŸ’¬ Content

Hi, @dpdp
Try to add two more slots:
On Invoke:

import bmesh; bm = bmesh.from_edit_mesh(C.object.data)

On Update:

bpy.ops.ed.undo() if len(bm.select_history) == 0 else None

These 2 slots should undo Select Prev Element command if there is no selection. Didn’t test the code though. Let me know if it doesn’t work.


❀️ 2 likes


πŸ”— View on Blender Artists