Render Previewer!
This commit is contained in:
parent
5a879ff8c0
commit
ced0d5ac4a
|
@ -237,6 +237,13 @@ while True:
|
||||||
|
|
||||||
output(cframe)
|
output(cframe)
|
||||||
to_break2 = False
|
to_break2 = False
|
||||||
|
|
||||||
|
# Starting Render
|
||||||
|
runtime = get_runtime_data(project)
|
||||||
|
runtime["started_rendering"] = time.time()
|
||||||
|
runtime["current_frame"] = frame
|
||||||
|
save_runtime_data(runtime, project)
|
||||||
|
|
||||||
|
|
||||||
# Now that we found it I think we car actually render it
|
# Now that we found it I think we car actually render it
|
||||||
|
|
||||||
|
|
|
@ -185,6 +185,7 @@ def read_renders(win):
|
||||||
# pass
|
# pass
|
||||||
|
|
||||||
runtime = get_runtime_data(win.project)
|
runtime = get_runtime_data(win.project)
|
||||||
|
win.render_runtime = runtime
|
||||||
|
|
||||||
if int(time.time()) > runtime.get("running", 0) + 100 or not runtime.get("to_render"):
|
if int(time.time()) > runtime.get("running", 0) + 100 or not runtime.get("to_render"):
|
||||||
#print("Should be off")
|
#print("Should be off")
|
||||||
|
@ -240,7 +241,7 @@ def read_renders(win):
|
||||||
frame = int(blend_string[4:blend_string.find(" ")])
|
frame = int(blend_string[4:blend_string.find(" ")])
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
win.renders[blend]["current_frame"] = frame
|
win.renders[blend]["current_frame"] = frame
|
||||||
|
|
||||||
# The rest of it I will do in the UI.
|
# The rest of it I will do in the UI.
|
||||||
|
|
Loading…
Reference in a new issue