Not sure how best to do this...
I have a very simple question. When I click on the solid view icon in the window I see the console shows:
bpy.context.space_data.shading.type = 'WIREFRAME'
But when I add that to the Text Script window:
import bpy bpy.context.space_data.shading.type = 'WIREFRAME'
It of course doesn’t run because it doesn’t have the proper context. I also tried:
import bpy prev_type = bpy.context.area.type bpy.context.area.type = 'VIEW_3D' bpy.context.space_data.shading.type = 'SOLID' bpy.context.area.type = prev_type
which doesn’t throw an error, but doesn’t work either. I know it must be something simple, but how to fix this? Thanks!