Baking camera property drivers to keyframe
Quick script to bake camera data.

Bake a bpy.types.Camera object's drivers to keyframes.


Bakes all driven properties of scene.camera.data from scene.frame_start to scene.frame_end in frame_step steps.
Assumes there are no array type properties on camera
Leaves drivers intact, will need to be removed. (Currently code used to remove camera drivers crashes my version of 2.8, and doesn't work on 2.79) Keyframes trump drivers.  Remove manually if happy with result.


Test script

import bpy
context = bpy.context
scene = context.scene
cam_ob = scene.camera
cam = cam_ob.data
frame_step = 1
ad = cam.animation_data

f = scene.frame_start
if ad:
    while f &lt;= scene.frame_end:
        scene.frame_set(f)
        for d in cam.animation_data.drivers:
            cam.keyframe_insert(d.data_path)
        f += frame_step