Post #1677: ![](https://blenderartists.org/user_avatar/blenderartists.org/bialy/48/22871_2.p

📋 Metadata

🏷️ Tags

pie-menu hotkeys intermediate solved

  • Property Editor
  • Pie Menu Editor
  • Python Scripting

💬 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