Grass Cutters Together: the project as of moon-sweepers f3666f0
A clean start for the shared repository: the Unity project (Assets, Packages, ProjectSettings), ArtSource, Docs and Tools as they stood at f3666f0 in the old local repository, with its generated prefabs and scene brought up to date. Images, audio, models and binaries go through Git LFS (.gitattributes). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
36
Tools/Trailer/looks.py
Normal file
36
Tools/Trailer/looks.py
Normal file
@ -0,0 +1,36 @@
|
||||
"""What every cut shares: the song's beat, the grades, where the takes and the sounds are, and laying shots end to end."""
|
||||
import os
|
||||
|
||||
from cut import PROJECT, Shot
|
||||
|
||||
ROLLS = os.path.join(PROJECT, r"Builds\Trailer\rolls")
|
||||
AUDIO = os.path.join(PROJECT, r"Assets\Audio")
|
||||
LOGO = os.path.join(PROJECT, r"Assets\Art\UI\logo_grasscutter.png")
|
||||
BEAT = 0.4665
|
||||
BAR = BEAT * 4
|
||||
|
||||
GOLD = {"tint": (-0.02, 0.0, 0.03), "sat": 1.08, "gain": 1.02, "contrast": 1.1}
|
||||
DUSK = {"tint": (-0.05, -0.012, 0.06), "sat": 1.24, "gain": 1.04, "contrast": 1.12}
|
||||
NIGHT = {"tint": (0.05, 0.012, -0.03), "sat": 0.95, "gain": 1.5, "contrast": 1.16}
|
||||
BARE = {"tint": (-0.03, -0.004, 0.035), "sat": 1.0, "gain": 1.0, "contrast": 1.16}
|
||||
HOT = {"sat": 1.1, "contrast": 1.1, "gain": 1.0}
|
||||
PLAY = {"sat": 1.04, "contrast": 1.04, "gain": 1.0} # first person: the HUD keeps its own colours
|
||||
SPACE = {"sat": 1.1, "contrast": 1.06, "tint": (0, 0, 0)}
|
||||
|
||||
|
||||
def clip(name):
|
||||
return os.path.join(AUDIO, name + ".wav")
|
||||
|
||||
|
||||
def runner(shots):
|
||||
"""run(at, (seconds, take, keywords), ...): back to back from `at`. With `until` the last shot runs to it."""
|
||||
def run(at, *cuts, until=None):
|
||||
t = at
|
||||
for i, c in enumerate(cuts):
|
||||
secs, take = c[0], c[1]
|
||||
kw = c[2] if len(c) > 2 else {}
|
||||
end = until if until is not None and i == len(cuts) - 1 else t + secs
|
||||
shots.append(Shot(take, t, end, **kw))
|
||||
t = end
|
||||
return t
|
||||
return run
|
||||
Reference in New Issue
Block a user