Post #4477: If im understanding correctly this code should work if you are on the 3D view
📋 Metadata
- Author: Motiomancer
- Date: 2022-07-30 21:19:19
- Type:
answer - Quality Score: 7/10
- Reply to: post_04474
🏷️ Tags
⚙️ Related PME Features
- Macro Editor
- Python Scripting
💬 Content
If im understanding correctly this code should work if you are on the 3D view
C.space_data.shading.show_xray = True
or
C.space_data.shading.show_xray = False
Add it in a slot of the macro that calls the tool