From 29e0dc25017ed3b63e1787ce9a1e8910d0fd9ccd Mon Sep 17 00:00:00 2001 From: "Jeison Yehuda Amihud (Blender Dumbass)" Date: Sat, 15 Oct 2022 16:43:19 +0000 Subject: [PATCH] Renders with a much more capable system. / A minor bug six ( studio_gtk.py ) --- studio/studio_gtk.py | 9 ++++++--- studio/studio_renderLayer.py | 11 ++++++++++- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/studio/studio_gtk.py b/studio/studio_gtk.py index 65d4fc5..c3ff494 100644 --- a/studio/studio_gtk.py +++ b/studio/studio_gtk.py @@ -94,7 +94,7 @@ def run(project, win): win = Gtk.Window() win.set_default_size(1200,720) win.set_position(Gtk.WindowPosition.CENTER) - #win.maximize() + win.maximize() win.connect("destroy", Gtk.main_quit) win.set_title("VCStudio") win.set_default_icon_from_file("tinyicon.png") @@ -387,8 +387,11 @@ def pmdrawing(pmdrawing, main_layer, win): remlater.append(call) for call in remlater: - - del win.current["calls"][call] + + try: + del win.current["calls"][call] + except: + pass diff --git a/studio/studio_renderLayer.py b/studio/studio_renderLayer.py index 0001a5e..2afecc3 100644 --- a/studio/studio_renderLayer.py +++ b/studio/studio_renderLayer.py @@ -70,7 +70,7 @@ def layer(win, call): # network/during_render.py # network/network_renders.py - # This file is the UI part of the process. ( The maing UI ) Some beats and + # This file is the UI part of the process. ( The main UI ) Some beats and # peaces will exists in various windows through out the program. ########################################################################## @@ -134,6 +134,15 @@ def layer(win, call): # This here will launch a script that will be on it's on from now # on. See: # network/during_render.py + + try: + with open(win.project+"/render_runtime.json") as json_file: + runtime = json.load(json_file) + except: + runtime = {} + runtime["to_render"] = True + with open(win.project+"/render_runtime.json", 'w') as fp: + json.dump(runtime, fp, indent=4) Popen(["python3", "network/during_render.py", win.project, oscalls.get_current_blender(win)])