Upload files to 'studio'

This commit is contained in:
Jeison Yehuda Amihud (Blender Dumbass) 2020-12-17 06:34:19 +00:00
parent 26d2187fa6
commit 214f5cfce5
3 changed files with 1471 additions and 274 deletions

View file

@ -971,9 +971,28 @@ def layer(win):
# If it's a shot let's mark in the different color.
if block[0]:
UI_color.set(layer, win, "node_badfile")
if "shot_colors" not in win.story:
win.story["shot_colors"] = {}
surl = "/"+scene+"/"+block[0]
if surl not in win.story["shot_colors"]:
rcolors = [
"shot_1",
"shot_2",
"shot_3",
"shot_4",
"shot_5"
]
win.story["shot_colors"][surl] = rcolors[len(win.story["shot_colors"]) % len(rcolors)]
col = win.story["shot_colors"][surl]
UI_color.set(layer, win, col)
else:
UI_color.set(layer, win, "dark_overdrop")
UI_color.set(layer, win, "node_background")
UI_elements.roundrect(layer, win,
x,
y+win.scroll["asset_scenes"]+current_Y_scenes,

View file

@ -93,6 +93,7 @@ def run(project, win):
win.calllayer = False
win.layercashe = {} # Here I gonna store layers that are inactive to speed up stuff
win.checklists = {}
win.blink = False # Cursor blinking thing.
if pm_project.is_legacy(project):
win.story = story.get_legacy(project)
@ -173,6 +174,10 @@ def pmdrawing(pmdrawing, main_layer, win):
# FPS counter
win.fFPS = datetime.datetime.now()
win.tFPS = win.fFPS - win.sFPS
if win.current["frame"] % 5 == 0:
win.blink = not win.blink # Iterating the blink
if win.current["frame"] % 10 == 0:
win.FPS = int ( 1.0 / ( win.tFPS.microseconds /1000000))

File diff suppressed because it is too large Load diff