Skip to main content
1 of 3
X Y
  • 6.8k
  • 1
  • 10
  • 26

I find a solution it should work

import bpy

def run_every_01_sec():
    if RETURN in ({'CANCELLED'}, {'FINISHED'}):
        print("op end")
        bpy.app.timers.unregister(run_every_01_sec)
    else:
        print("op running")
    return 0.1

RETURN = bpy.ops.object.bake_image()

bpy.app.timers.register(run_every_01_sec)
X Y
  • 6.8k
  • 1
  • 10
  • 26