A bit more, better and nicer goods.

This commit is contained in:
Jeison Yehuda Amihud (Blender Dumbass) 2023-03-09 04:50:32 +00:00
parent 09c4e7c046
commit 7f1d70da03

View file

@ -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
try:
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)
@ -146,7 +146,7 @@ def layer(win, call):
if i > longest:
longest = i
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_h = (win.current["h"]-200)/3
@ -203,7 +203,8 @@ def layer(win, call):
layer.move_to(50,
win.current["h"]-30)
layer.show_text(win.render_runtime.get("current_progress", ""))
except:
pass
#########################################################################
#