I would like to know how to copy keyframes from one armature to another. The thing is, I have the same object, the same armature - the same everything - but in diferent blend files. I want to have all the animation in a single blend file. Can any one explain how to do that?
this script will copy the animation data from the active Object to the selected object:
import bpy active_obj = bpy.context.object ad = bpy.context.object.animation_data properties = [p.identifier for p in ad.bl_rna.properties if not p.is_readonly] objects = [o for o in bpy.context.selected_objects if o.type == active_obj.type] objects.remove(active_obj) for obj in objects : if obj.animation_data == None : obj.animation_data_create() ad2 = obj.animation_data for prop in properties: setattr(ad2, prop, getattr(ad, prop))
here is test run :
Select both objects and use Ctrl-L>Animation data