Post #3663: ![](https://blenderartists.org/user_avatar/blenderartists.org/motiomancer/48/874

📋 Metadata

  • Author: _EMM
  • Date: 2020-10-30 14:56:41
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_03662

🏷️ Tags

hotkeys advanced solved

  • Python Scripting
  • Pie Menu Editor
  • Conditional Display

💬 Content

Motiomancer:

return bpy.context.space_data.shading.type == ‘WIREFRAME’

Sorry, I think I’ve tried this before, and just now I tried it too, and this is what it looks like

imageimage738×200 34.7 KB

But this I have found the right solution, need the following: return context.area.ui_type“ShaderNodeTree” and context.area.spaces[0].shader_type ‘OBJECT’

抱歉,这个我之前好像试过,刚刚也尝试了一下,就变成这样了
不过这个我已经找到了正确的解决方法,需要以下:return context.area.ui_type“ShaderNodeTree” and context.area.spaces[0].shader_type ‘OBJECT’


❤️ 1 likes


🔗 View on Blender Artists