http://blenderartists.org/forum/showthread.php?237761-Blender-2-6-Set-keyframes-using-Python-script
Um mit einem Pythonscript Lampen an- und abzulöschen:
#Select an object named OBJECTNAME ob = bpy.data.objects['Lamp'] bpy.context.scene.objects.active=ob #Set current frame to FRAME bpy.context.scene.frame_set(30) #Change its solidify modifier thickness ob.data.energy = 1 #Make a keyframe for this thickness ob.data.keyframe_insert(data_path="energy")