broken script to bake keyframes from driver controlled shape keys I found a script on the web that is supposed to set key frames for driver driven shape keys. however its giving me an error. I need this so i can remove the drivers for the render farm I use wont allow scripts. Here is the script. 

Import bpy

context = bpy.context
scene = context.scene
object = context.object

frame = scene.frame_start

while frame &lt;= scene.frame_end:
scene.frame_set(frame)
for fcurve in object.data.shape_keys.animation_data.drivers.valu es(): 
object.data.shape_keys.keyframe_insert(fcurve.data _path)
frame = frame + 1


The error I get when ran is below
Just some syntactic errors (missing indents, etc.). Should work like this:


import bpy

context = bpy.context
scene = context.scene
object = context.object

frame = scene.frame_start

while frame &lt;= scene.frame_end:
    scene.frame_set(frame)
    for fcurve in object.data.shape_keys.animation_data.drivers.values(): 
        object.data.shape_keys.keyframe_insert(fcurve.data_path)
    frame = frame + 1