A bit more, better and nicer goods.
This commit is contained in:
parent
09c4e7c046
commit
7f1d70da03
1 changed files with 68 additions and 67 deletions
|
@ -127,9 +127,9 @@ def layer(win, call):
|
||||||
#########################################################################
|
#########################################################################
|
||||||
|
|
||||||
# Here I want to do a preview that's going to be rendered on the right side
|
# Here I want to do a preview that's going to be rendered on the right side
|
||||||
|
try:
|
||||||
the_render = win.renders[list(win.renders.keys())[0]]
|
the_render = win.renders[list(win.renders.keys())[0]]
|
||||||
amount_of_frames = the_render["end_frame"] - the_render["start_frame"]
|
amount_of_frames = the_render["end_frame"] - the_render["start_frame"] + 1
|
||||||
|
|
||||||
|
|
||||||
passed = time.time() - win.render_runtime.get("started_rendering", 0)
|
passed = time.time() - win.render_runtime.get("started_rendering", 0)
|
||||||
|
@ -146,7 +146,7 @@ def layer(win, call):
|
||||||
if i > longest:
|
if i > longest:
|
||||||
longest = i
|
longest = i
|
||||||
rn_files = []
|
rn_files = []
|
||||||
for n, frame in enumerate(range(the_render["start_frame"], the_render["end_frame"])):
|
for n, frame in enumerate(range(the_render["start_frame"], the_render["end_frame"]+1)):
|
||||||
|
|
||||||
frame_w = (win.current["w"]-630)/amount_of_frames
|
frame_w = (win.current["w"]-630)/amount_of_frames
|
||||||
frame_h = (win.current["h"]-200)/3
|
frame_h = (win.current["h"]-200)/3
|
||||||
|
@ -203,7 +203,8 @@ def layer(win, call):
|
||||||
layer.move_to(50,
|
layer.move_to(50,
|
||||||
win.current["h"]-30)
|
win.current["h"]-30)
|
||||||
layer.show_text(win.render_runtime.get("current_progress", ""))
|
layer.show_text(win.render_runtime.get("current_progress", ""))
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
#########################################################################
|
#########################################################################
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Reference in a new issue