import bpy


# TopLight ON
bpy.data.objects['TopLight1X1'].select = True
bpy.data.lamps['TopLight_1X1'].energy = 0.3
bpy.data.objects['TopLight1X1'].select = False

# Setting of SideLights, A.O. and E.L.

bpy.data.objects['SideLight_1x1_dim0'].select = True
bpy.data.lamps['SideLight_1x1_dim'].energy = 0.25
bpy.data.objects['SideLight_1x1_dim0'].select = False

bpy.context.scene.world.light_settings.use_ambient_occlusion = True
bpy.context.scene.world.light_settings.ao_factor = 0.5

bpy.context.scene.world.light_settings.use_environment_light = True
bpy.context.scene.world.light_settings.environment_energy = 0.25

bpy.context.scene.world.light_settings.distance = 7.5


# Setting of Render_Dimensions panel

bpy.context.scene.render.field_order = 'EVEN_FIRST'
bpy.context.scene.render.fps = 25
bpy.context.scene.render.fps_base = 1.0
bpy.context.scene.render.pixel_aspect_x = 100.0
bpy.context.scene.render.pixel_aspect_y = 100.0
bpy.context.scene.render.resolution_percentage = 100
bpy.context.scene.render.resolution_x = 256
bpy.context.scene.render.resolution_y = 256
bpy.context.scene.render.use_fields = False
bpy.context.scene.render.use_fields_still = False


# Setting of Render_Performance panel_Tile Size:

bpy.data.scenes[bpy.context.scene.name].render.tile_x = 256
bpy.data.scenes[bpy.context.scene.name].render.tile_y = 256

