hi I wrote a simple script to take screenshots, but the frames are not updating in the screenshots i.e all screenshots are the same image (a single frame). I introduced a time delay in case blender having problem updating but the problem is still there
import bpy
import pyautogui
import time
c=1
while c<=50:
bpy.context.scene.frame_current =c
time.sleep(2)
path='D:\\Blender\\script_screenshot\\'+str(c)+'.png'
pyautogui.screenshot(path)
c=c+5