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
βοΈ Related PME Features
- 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