change background color from script How to do this: Render shadow on transparent background with Blender Render from script? I need to set a transparent background color before render a mesh.
When you hover over a property, you can see its Python property. 

Here, it is simply : 

scene.render.alpha_mode = 'SKY' # in ['TRANSPARENT', 'SKY']