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 种现成风格,也能做出你自己的

515 B
Raw Blame
#!/usr/bin/env python3
"""Subtitles from film.json → audio/cues.json (the input for core/render/srt.py): one Chinese line and one English line per cue."""
import json, os
D = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
F = json.load(open(os.path.join(D, 'film.json'), encoding='utf-8'))
json.dump([{'t0': a, 't1': b, 'text': f'{zh}\n{en}'} for a, b, zh, en in F['subs']], open(os.path.join(D, 'audio/cues.json'), 'w', encoding='utf-8'), ensure_ascii=False, indent=1)
print(len(F['subs']), 'cues')