📋 Metadata

💬 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

🔗 View on Blender Artists