Post #597: : post_00601
🏷️ Tags
macro hotkeys intermediate solved
⚙️ Related PME Features
- Macro Editor
- Modal Editor
- Python Scripting
💬 Content
panosz:
Hi Roaoao,
I’ve set up a macro operator with three commands, let’s name it “A”. First and second commands are box select and the third is Merge Vertices. Everything is working great. Now, I wanted to repeat this so I made a new macro with “A” as menu, 10-20 times no problem it works ok. I press hotkey once and then I start selecting and merging until I reach 10-20 times. My question is: Can you recommend a better way to do this repetition?
Thanks
Hi, try to add 2 new items (both in Command tab) to the “A” macro:
bpy.ops.pme.modal_dummy()
open_menu("A")
With these 2 items you can remove the second macro and use only “A”. When you want to stop using the tool just press RMB.
It works for “Connect 2 Vertices” and “Lasso Dissolve” macro examples. Not sure that it will work for border select tool.
Note that if you already have Dummy Modal in your first item you need to add only: open_menu(“A”)