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 种现成风格,也能做出你自己的
JavaScript agent-skillsai-agentsai-short-filmai-videoanimationcanvasclaudeclaude-codeclaude-code-pluginclaude-code-skillcreative-codingffmpegfilmmakingmotion-graphicsopus-5-5prompt-librarytext-to-speechthreejsvideo-productionwebgl
"""Subtitle intervals (same rule as setLines/subtitle in film.js) → out/subs.json, then handed to core/render/srt.py"""
import json, os, sys
D = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')
L = json.load(open(os.path.join(D, 'lines.json'))); dur = json.load(open(os.path.join(D, 'voices', 'dur.json')))
out = []
for i, l in enumerate(L):
nx = L[i + 1]['t'] if i + 1 < len(L) else 1e9
t1 = min(nx - .05, max(l['t'] + dur[l['id']] + .7, l['t'] + 1.8), 36)
out.append({'t0': l['t'], 't1': round(t1, 3), 'text': l['text']})
os.makedirs(os.path.join(D, 'out'), exist_ok=True)
json.dump(out, open(os.path.join(D, 'out', 'subs.json'), 'w'), indent=1)
for c in out: print(c)