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
# Export SRT from story.js's VO table + voices/dur.json
# Usage: .venv/bin/python styles/hd-2d/demo/tools/srt.py [out.srt] (writes the library deliverable styles/hd-2d/hd-2d.srt by default)
import sys
import re, json, os
H = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')
s = open(os.path.join(H, 'story.js')).read(); D = json.load(open(os.path.join(H, 'voices/dur.json')))
f = lambda x: '%02d:%02d:%02d,%03d' % (x // 3600, x % 3600 // 60, int(x % 60), round((x % 1) * 1000) % 1000)
out = []
for i, m in enumerate(re.finditer(r"\{ id: '(\w+)', t: ([\d.]+).*?sub: '((?:[^'\\]|\\.)*)'", s)):
k, t, sub = m.group(1), float(m.group(2)), m.group(3).replace("\\u2019", "’").replace("\\'", "'")
who = 'OLD KEEPER: ' if k == 'k1' else ''
out.append(f"{i + 1}\n{f(t)} --> {f(t + D[k] + .5)}\n{who}{sub}\n")
open(sys.argv[1] if len(sys.argv) > 1 else os.path.join(H, '..', 'hd-2d.srt'), 'w').write('\n'.join(out)); print('\n'.join(out))