I have a smoke animation that is 50 frames long and I want to render only the last frame as an image.
I tried:
bpy.context.scene.frame_set(50)
bpy.ops.render.render(write_still=True)
But this doesn't render the fiftieth frame of the animation properly. The smoke animation doesn't update to what it should look like at frame 50 and instead stays at its frame 0 state