Announcement

Collapse
No announcement yet.

How to wait for take_high_res_screenshot?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to wait for take_high_res_screenshot?

    I have a script that takes a screenshot using

    Code:
    screenshotTask = unreal.AutomationLibrary.take_high_res_screenshot(SCREEN_X, SCREEN_Y, screenshotPath)
    How do I wait for screenshotTask.is_task_done() to become true?

    #2
    Think the file should be accessible the very next line, the limitation I found is mostly that you can only make one capture this frame. We implemented something like a 'coroutine' in our python bridge a function that would allow us to in python yield result per frame,

    Code:
    for x in range(10):
      # capture screen, and edit settings for next frame, 
      yield WaitForNextFrame

    Comment

    Working...
    X