# Make rigid body fall at specific frame? frame_set not working properly? script python

I am trying to make rigid body objects start to fall at specific frames. I've tried using the following code to advance to the frame I would like, then import and set the rigid body properties. When I play the animation, all the objects are there at the first frame and fall right away? Am I doing something wrong?

bpy.context.scene.frame_set(frame=100)
bpy.ops.import_mesh.stl(filepath="C://Users/deden/Desktop/x0y0z0h1.stl")
bpy.context.scene.frame_set(frame=200)
bpy.ops.import_mesh.stl(filepath="C://Users/deden/Desktop/x0y0z0h1.stl")

bpy.ops.import_mesh.stl(filepath="C://Users/deden/Desktop/x0y0z0h1.stl")