Skip to main content
Tweeted twitter.com/StackBlender/status/1428371190444347394
deleted 1 character in body
Source Link
Noob Cat
  • 1.4k
  • 3
  • 25
  • 67

What interests me is basically to stop the execution of my code until the end of the render but at the same time view the progress of the render, considering that the possibility of the "ESC" key that cancels the render. I am looking on the internet but the situation is unclear to me, I found this:

Is it possible to make a sequence of renders and give the user the option to cancel the process through the UI at any given time?

but it seems quite complicated, I was wondering if there was a simpler solution to my specific case, as my situation is slightly different, as I don't want to render multiple.

Practically:

    ## my code
    ## my code
    bpy.ops.render.render ('INVOKE_DEFAULT', animation = False, write_still = True)
    ## if render is done:
    ###### my code
    ###### my code

What interests me is basically to stop the execution of my code until the end of the render but at the same time view the progress of the render, considering that the possibility of the "ESC" key that cancels the render. I am looking on the internet but the situation is unclear to me, I found this:

Is it possible to make a sequence of renders and give the user the option to cancel the process through the UI at any given time?

but it seems quite complicated, I was wondering if there was a simpler solution to my specific case, as my situation is slightly different, as I don't want to render multiple.

Practically:

    ## my code
    ## my code
    bpy.ops.render.render ('INVOKE_DEFAULT', animation = False, write_still = True)
    ## if render is done:
    ###### my code
    ###### my code

What interests me is basically to stop the execution of my code until the end of the render but at the same time view the progress of the render, considering that the possibility of the "ESC" key that cancels the render. I am looking on the internet but the situation is unclear to me, I found this:

Is it possible to make a sequence of renders and give the user the option to cancel the process through the UI at any given time?

but it seems quite complicated, I was wondering if there was a simpler solution to my specific case, as my situation is slightly different, as I don't want to render multiple.

Practically:

    ## my code
    ## my code
    bpy.ops.render.render('INVOKE_DEFAULT', animation = False, write_still = True)
    ## if render is done:
    ###### my code
    ###### my code
Source Link
Noob Cat
  • 1.4k
  • 3
  • 25
  • 67

How to wait the finish of the bpy.ops.render.render('INVOKE_DEFAULT',animation=False, write_still=True)?

What interests me is basically to stop the execution of my code until the end of the render but at the same time view the progress of the render, considering that the possibility of the "ESC" key that cancels the render. I am looking on the internet but the situation is unclear to me, I found this:

Is it possible to make a sequence of renders and give the user the option to cancel the process through the UI at any given time?

but it seems quite complicated, I was wondering if there was a simpler solution to my specific case, as my situation is slightly different, as I don't want to render multiple.

Practically:

    ## my code
    ## my code
    bpy.ops.render.render ('INVOKE_DEFAULT', animation = False, write_still = True)
    ## if render is done:
    ###### my code
    ###### my code