Post #4512: You can use the pme override context option
📋 Metadata
- Author: Motiomancer
- Date: 2022-08-17 16:46:46
- Type:
answer - Quality Score: 8/10
- Reply to: post_04511
- Replies (1): post_04515
🏷️ Tags
⚙️ Related PME Features
- Macro Editor
- Python Scripting
- Hotkey Configuration
💬 Content
You can use the pme override context option
command tab:
bpy.ops.pme.exec(override_context('VIEW_3D'), cmd='bpy.context.space_data.overlay.show_overlays ^= True')
❤️ 1 likes