📋 Metadata
- Author: roaoao
- Date: 2019-08-26 13:48:27
- Type:
answer - Reply to: post_02663
💬 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