I am very new to Python and I would like to be able to make a script that will change certain values in the Properties Window.
I am currently able to change the Render Engine with this line:
bpy.context.scene.render.engine = ‘BLENDER_WORKBENCH’
Then I tried to change the Lighting to Matcap with this line:
bpy.context.scene.shading.light = ‘MATCAP’
but I get an Error message saying:
AttributeError: ‘Scene’ object has no attribute ‘shading’
I took both code lines from the script listener of Blender, so I don’t know what I am missing.
Thank you in advance for your help and have a nice day!