def init_all():
    'init everything we need for rendering\n    an image\n    '
    scene_setting_init(g_gpu_render_enable)
    node_setting_init()
    cam_obj = bpy.data.objects['Camera']
    cam_obj.rotation_mode = g_rotation_mode
    if g_render_light:
        bpy.data.objects['Lamp'].data.energy = 50
        bpy.ops.object.lamp_add(type='SUN')
        bpy.data.objects['Sun'].data.energy = 5
init everything we need for rendering
an image
def init_all():
    'init everything we need for rendering\n    an image\n    '
    scene_setting_init(g_gpu_render_enable)
    node_setting_init()
    cam_obj = bpy.data.objects['Camera']
    cam_obj.rotation_mode = g_rotation_mode
    if g_render_light:
        bpy.data.objects['Lamp'].data.energy = 50
        bpy.ops.object.lamp_add(type='SUN')
        bpy.data.objects['Sun'].data.energy = 5