# Export rigid body location without baking to keyframes

I'm making simulation in blender for rigid body. I need object location in the current frame. I use following command

bpy.context.scene.frame_set(250)
bpy.data.objects['Object'].location


but this command returns the location corresponding to the initial frame. Neither changes object location in Location panel during simulation. I know I can bake rigid body transformations to keyframes but I need another way to get location of object because baking takes long time for multiple objects. Is there any other command which can print object location after transformation without baking?

bpy.context.scene.frame_set(250)

1. This gives you absolute position of the object (world space), if you want its relative position (to parent e.g., local space), you'll have to use matrix_local.
2. You should bake physics simulation before using frame_set().