I'd like to append all objects from a specific blend file. Some objects in the blend file have drivers attached. For example z-coordinate of the Cube is equal to z-coordinate of the Empty. I used the following simple code for appending.
import bpy with bpy.data.libraries.load("path/to/test.blend") as (data_from, data_to): data_to.objects = data_from.objects for obj in data_to.objects: bpy.context.scene.objects.link(obj)
However, drivers don't work after execution of the above code. They start to work if I go to the driver settings and press "Update Dependecies" button.
What is the trick to make drivers work?