Shot List Generator
Parse screenplays, collaboratively determine shots, and generate production-ready PDF shot lists.
Workflow Overview
- Parse Script → Extract scenes, locations, characters, action
- Collaborate → Discuss shot choices scene-by-scene with user
- Generate PDF → Create professional, printable shot list
Step 1: Parse the Script
Support formats: .fountain, .fdx, .txt, .pdf, .docx
Scene Extraction Pattern
Extract from script:
- Scene number (auto-generate if missing)
- Scene heading (INT./EXT., location, time)
- Characters in scene
- Key action beats (story moments needing coverage)
- Page/timing estimate
Fountain/Text Parsing
import re
def parse_screenplay(text):
"""Extract scenes from screenplay text."""
scenes = []
scene_pattern = r'^((?:INT\.|EXT\.|INT\./EXT\.|I/E\.)\s+.+)$'
lines = text.split('\n')
current_scene = None
scene_num = 0
for i, line in enumerate(lines):
line = line.strip()
if re.match(scene_pattern, line, re.IGNORECASE):
if current_scene:
scenes.append(current_scene)
scene_num += 1
current_scene = {
'number': scene_num,
'heading': line,
'characters': set(),
'action_beats': [],
'content': []
}
elif current_scene:
current_scene['content'].append(line)
if line.isupper() and len(line) > 1 and len(line) < 40:
if not any(t in line for t in ['CUT TO', 'FADE', 'DISSOLVE']):
current_scene['characters'].add(line.split('(')[0].strip())
if current_scene:
scenes.append(current_scene)
for s in scenes:
s['characters'] = list(s['characters'])
return scenes
Step 2: Collaborative Shot Planning
After parsing, present scenes and discuss coverage. For each scene ask:
- What's the emotional arc? (Drives framing choices)
- Who has focus? (Determines coverage priority)
- Key moments? (Beats requiring specific shots)
- Practical constraints? (Location, equipment, time)
- Visual style reference? (Film/show inspiration)
Shot Type Reference
| Type |
Code |
Use For |
| Wide/Establishing |
WS |
Location, groups |
| Full Shot |
FS |
Full body, action |
| Medium Shot |
MS |
Dialogue, interaction |
| Medium Close-Up |
MCU |
Emotional dialogue |
| Close-Up |
CU |
Reaction, emotion |
| Extreme Close-Up |
ECU |
Critical detail |
| Over-the-Shoulder |
OTS |
Dialogue coverage |
| Two-Shot |
2S |
Paired characters |
| Insert |
INS |
Props, details |
| POV |
POV |
Character perspective |
Camera Movement Reference
| Movement |
Code |
Effect |
| Static |
STATIC |
Stability |
| Pan |
PAN |
Follow horizontally |
| Tilt |
TILT |
Reveal height |
| Dolly |
DOLLY |
Approach/retreat |
| Tracking |
TRACK |
Follow movement |
| Crane |
CRANE |
Epic scale |
| Handheld |
HH |
Tension, energy |
| Steadicam |
STEDI |
Fluid following |
Angle Reference
| Angle |
Effect |
| Eye Level |
Neutral |
| Low Angle |
Power |
| High Angle |
Vulnerability |
| Dutch |
Unease |
Step 3: Building Shot Entries
shot_entry = {
'scene': 1,
'shot': 'A',
'setup': 1,
'shot_type': 'MS',
'framing': 'Medium on Sarah',
'angle': 'Eye Level',
'movement': 'STATIC',
'lens': '50mm',
'description': 'Sarah enters, sees the letter',
'characters': ['SARAH'],
'notes': 'Practical window light'
}
Coverage Pattern
Master → Medium → Close-ups → Inserts
Step 4: Generate PDF
Use scripts/generate_shot_list_pdf.py for professional output.
PDF Columns
| Column |
Content |
| Shot # |
Scene.Shot ID |
| Setup |
Camera setup |
| Type |
Shot type code |
| Framing |
Description |
| Move |
Camera movement |
| Action |
What happens |
| Notes |
Technical notes |
Output to /mnt/user-data/outputs/shot_list_{project}.pdf
References
references/shot_terminology.md - Complete glossary
references/coverage_patterns.md - Common coverage strategies
1---2name: shot-list3description: Generate professional shot lists from screenplays and scripts. Use when user uploads a screenplay (.fountain, .fdx, .txt, .pdf, .docx) or describes scenes for production planning. Parses scripts to extract scenes, helps determine camera setups, shot types, framing, and movement through collaborative discussion, then generates beautifully formatted PDF shot lists for production. Triggers include requests to create shot lists, plan shots, break down scripts for filming, or organize camera coverage.4---56# Shot List Generator78Parse screenplays, collaboratively determine shots, and generate production-ready PDF shot lists.910## Workflow Overview11121. **Parse Script** → Extract scenes, locations, characters, action132. **Collaborate** → Discuss shot choices scene-by-scene with user143. **Generate PDF** → Create professional, printable shot list1516## Step 1: Parse the Script1718Support formats: `.fountain`, `.fdx`, `.txt`, `.pdf`, `.docx`1920### Scene Extraction Pattern2122Extract from script:23- **Scene number** (auto-generate if missing)24- **Scene heading** (INT./EXT., location, time)25- **Characters** in scene26- **Key action beats** (story moments needing coverage)27- **Page/timing estimate**2829### Fountain/Text Parsing3031```python32import re3334def parse_screenplay(text):35 """Extract scenes from screenplay text."""36 scenes = []37 scene_pattern = r'^((?:INT\.|EXT\.|INT\./EXT\.|I/E\.)\s+.+)$'38 39 lines = text.split('\n')40 current_scene = None41 scene_num = 042 43 for i, line in enumerate(lines):44 line = line.strip()45 if re.match(scene_pattern, line, re.IGNORECASE):46 if current_scene:47 scenes.append(current_scene)48 scene_num += 149 current_scene = {50 'number': scene_num,51 'heading': line,52 'characters': set(),53 'action_beats': [],54 'content': []55 }56 elif current_scene:57 current_scene['content'].append(line)58 if line.isupper() and len(line) > 1 and len(line) < 40:59 if not any(t in line for t in ['CUT TO', 'FADE', 'DISSOLVE']):60 current_scene['characters'].add(line.split('(')[0].strip())61 62 if current_scene:63 scenes.append(current_scene)64 65 for s in scenes:66 s['characters'] = list(s['characters'])67 68 return scenes69```7071## Step 2: Collaborative Shot Planning7273After parsing, present scenes and discuss coverage. For each scene ask:74751. **What's the emotional arc?** (Drives framing choices)762. **Who has focus?** (Determines coverage priority)773. **Key moments?** (Beats requiring specific shots)784. **Practical constraints?** (Location, equipment, time)795. **Visual style reference?** (Film/show inspiration)8081### Shot Type Reference8283| Type | Code | Use For |84|------|------|---------|85| Wide/Establishing | WS | Location, groups |86| Full Shot | FS | Full body, action |87| Medium Shot | MS | Dialogue, interaction |88| Medium Close-Up | MCU | Emotional dialogue |89| Close-Up | CU | Reaction, emotion |90| Extreme Close-Up | ECU | Critical detail |91| Over-the-Shoulder | OTS | Dialogue coverage |92| Two-Shot | 2S | Paired characters |93| Insert | INS | Props, details |94| POV | POV | Character perspective |9596### Camera Movement Reference9798| Movement | Code | Effect |99|----------|------|--------|100| Static | STATIC | Stability |101| Pan | PAN | Follow horizontally |102| Tilt | TILT | Reveal height |103| Dolly | DOLLY | Approach/retreat |104| Tracking | TRACK | Follow movement |105| Crane | CRANE | Epic scale |106| Handheld | HH | Tension, energy |107| Steadicam | STEDI | Fluid following |108109### Angle Reference110111| Angle | Effect |112|-------|--------|113| Eye Level | Neutral |114| Low Angle | Power |115| High Angle | Vulnerability |116| Dutch | Unease |117118## Step 3: Building Shot Entries119120```python121shot_entry = {122 'scene': 1,123 'shot': 'A',124 'setup': 1,125 'shot_type': 'MS',126 'framing': 'Medium on Sarah',127 'angle': 'Eye Level',128 'movement': 'STATIC',129 'lens': '50mm',130 'description': 'Sarah enters, sees the letter',131 'characters': ['SARAH'],132 'notes': 'Practical window light'133}134```135136### Coverage Pattern137Master → Medium → Close-ups → Inserts138139## Step 4: Generate PDF140141Use `scripts/generate_shot_list_pdf.py` for professional output.142143### PDF Columns144145| Column | Content |146|--------|---------|147| Shot # | Scene.Shot ID |148| Setup | Camera setup |149| Type | Shot type code |150| Framing | Description |151| Move | Camera movement |152| Action | What happens |153| Notes | Technical notes |154155Output to `/mnt/user-data/outputs/shot_list_{project}.pdf`156157## References158159- `references/shot_terminology.md` - Complete glossary160- `references/coverage_patterns.md` - Common coverage strategies