Renders with a much more capable system. / A minor bug six ( studio_gtk.py )

This commit is contained in:
Jeison Yehuda Amihud (Blender Dumbass) 2022-10-15 16:43:19 +00:00
parent cd31aed6da
commit 29e0dc2501
2 changed files with 16 additions and 4 deletions

View file

@ -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

View file

@ -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)])