Post #2177: Yes, if you have one action/operator PME adds 'INVOKE_DEFAULT', True [position
📋 Metadata
- Author: roaoao
- Date: 2019-04-12 20:05:34
- Type:
answer - Quality Score: 8/10
- Reply to: post_02176
- Replies (1): post_02178
🏷️ Tags
⚙️ Related PME Features
- Macro Editor
- Python Scripting
💬 Content
Yes, if you have one action/operator PME adds 'INVOKE_DEFAULT', True positional arguments automatically.
When you have more than one actions you need to add undo positional argument manually:
vert_sel, edge_sel, face_sel = C.tool_settings.mesh_select_mode; vert_sel and bpy.ops.mesh.dissolve_verts(True) or edge_sel and bpy.ops.mesh.dissolve_edges(True, use_verts=True) or face_sel and bpy.ops.mesh.delete(True, type='FACE')