Post #2667: Blender macros allows to use only 1 operator with the same name. You are using 3
📋 Metadata
- Author: roaoao
- Date: 2019-08-26 13:48:27
- Type:
answer - Quality Score: 8/10
- Reply to: post_02663
🏷️ Tags
macro pie-menu hotkeys intermediate solved
⚙️ Related PME Features
- Macro Editor
- Python Scripting
- Pie Menu Editor
💬 Content
Blender macros allows to use only 1 operator with the same name. You are using 3 wm.context_toggle operators.
PME can generate a new operator with the new name if you use EXEC_DEFAULT in the code:
bpy.ops.wm.context_toggle('EXEC_DEFAULT', True, data_path='space_data.overlay.show_extra_edge_length')
Or just use python code to toggle values:
C.space_data.overlay.show_extra_edge_length = not C.space_data.overlay.show_extra_edge_length