I have found this answer, but it works not inside animation handler.
Is it possible to get and print object locations (xyz) from animation handler (frame_change_pre) ?
def my_handler(scene):
ob = bpy.data.objects["ob_1"]
pos = ob.location
print(pos)
bpy.app.handlers.frame_change_pre.append(my_handler)
In example above location didn't changed from frame to frame.
"ob_1"and a keyframedlocation. Do you use a driver or e.g. an armature that changes the translation of the object? If so, useob.matrix_world.translationinstead. – CodeManX Nov 02 '14 at 22:17