Skip to content

A toolbox of film styles made in code for Claude Code: 66 ready to use, and your own. Each style is a style prompt plus a demo film made entirely in code by Claude Opus 5.5, with no video model. By Lemomo. · 一套用代码做片的风格工具箱:66 种现成风格,也能做出你自己的

618 B
Raw Blame
"""events.json (type 'sub') -> cues.json -> <slug>.srt via core/render/srt.py"""
import json, os, subprocess, sys
D = os.path.dirname(os.path.abspath(__file__)); ROOT = os.path.abspath(os.path.join(D, '../../..'))
ev = json.load(open(os.path.join(D, 'events.json')))['ev']
cues = [{'t0': e['t'], 't1': e['t1'], 'text': e['text']} for e in ev if e['type'] == 'sub']
json.dump(cues, open(os.path.join(D, 'cues.json'), 'w'), indent=1)
subprocess.run([sys.executable, os.path.join(ROOT, 'core/render/srt.py'), os.path.join(D, 'cues.json'), os.path.join(D, '..', 'stained-glass.srt')], check=True)
print(len(cues), 'cues')