📋 Metadata
- Author: BlenderBob
- Date: 2019-04-26 01:19:28
- Type:
question - Replies (1): post_02215
💬 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’