Post #2214: Yeah, me again. I thought I mastered Pie Menus but apparently not. I’m trying to

📋 Metadata

  • Author: BlenderBob
  • Date: 2019-04-26 01:19:28
  • Type: question
  • Quality Score: 6/10
  • Replies (1): post_02215

🏷️ Tags

pie-menu hotkeys intermediate unsolved

  • Pie Menu Editor
  • Python Scripting

💬 Content

Yeah, me again. I thought I mastered Pie Menus but apparently not. I’m trying to change the viewing modes in the 3D view using theses commands the I get from the scripting layout but it fails.

bpy.data.screens[“Scripting”].shading.type = ‘WIREFRAME’
bpy.data.screens[“Scripting”].shading.type = ‘SOLID’
bpy.data.screens[“Scripting”].shading.type = ‘MATERIAL’
bpy.data.screens[“Scripting”].shading.type = ‘RENDERED’

When I try then in the console I get this error message: AttributeError: ‘Screen’ object has no attribute ‘shading’


🔗 View on Blender Artists