📋 Metadata

💬 Content

Bialy:

C.space_data.shading.show_xray

Hi,
Make sure that you use this code in Property tab and in 3DView area.

If you want to use this button in any area, you need to find 3DView area in your code (Blender 2.8+):

find_by(C.screen.areas, "ui_type", 'VIEW_3D').spaces.active.shading.show_xray

🔗 View on Blender Artists