📋 Metadata

💬 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