Post #2177: Yes, if you have one action/operator PME adds 'INVOKE_DEFAULT', True [position

📋 Metadata

🏷️ Tags

macro hotkeys advanced

  • 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')


🔗 View on Blender Artists