I can't seem to link animation data programmatically. I have tried:
bpy.data.objects["Object_1"].select_set(True)
bpy.data.objects["Object_2"].select_set(True)
bpy.ops.objects.make_links_data(type='ANIMATION')
When I run this script I get the following:
AttributeError: Calling operator "bpy.ops.objects.make_links_data" error, could not be found
I am not too sure if it is because the second selection should be a shift + mouse click and this isn't reflected in the code (I can't seem to find an option to shift click an object in python) or my script isn't correct.
Would appreciate any help, Thanks in advance!