DEV Community

Cover image for Find Missing Shots in Your Short Drama With Python
Owen Dong
Owen Dong

Posted on

Find Missing Shots in Your Short Drama With Python

You have six shots on the list for the end of an episode. There is a wide shot of the café, a close-up of the lead and several shots of a parcel on the counter. The story turns when she recognizes the return label. None of the six shots lets viewers read the sender's name.

A spreadsheet can look complete while an essential story beat is still missing. Give each must-see beat an ID and record which shot covers it. A short Python check can find the gaps before you make the footage.

List what the audience needs to see

Imagine Tessa receives a parcel at a café. She recognizes the sender, hides the parcel and smiles at her coworker. If viewers miss the sender, they may read the smile as a greeting. Start with just the beats that change their understanding of the scene.

Save these two files as UTF-8 CSVs beside your script.

beats.csv

beat_id,description
E02-B01,Tessa receives the parcel
E02-B02,Tessa recognizes the sender on the label
E02-B03,Tessa hides the parcel
Enter fullscreen mode Exit fullscreen mode

shots.csv

shot_id,beat_id
E02-S01,E02-B01
E02-S02,E02-B03
Enter fullscreen mode Exit fullscreen mode

Use one row per shot-and-beat pair. If a single shot genuinely covers two beats, repeat its shot ID on a second row. If you're reviewing stills from DramaPilot Storyboard Writer, use the shot IDs in your own planning sheet and map each panel to the beat it actually shows. The shot list works with hand-drawn boards as well. DramaPilot Storyboard Writer

Check the two lists

Save this as check_coverage.py in the same folder. It uses the Python 3 standard library.

import csv
from pathlib import Path


def read_rows(filename):
    path = Path(__file__).with_name(filename)
    with path.open(encoding="utf-8-sig", newline="") as file:
        return list(csv.DictReader(file))


beats = {row["beat_id"].strip(): row["description"] for row in read_rows("beats.csv")}
covered = set()
failed = False

for row in read_rows("shots.csv"):
    shot_id = row["shot_id"].strip()
    beat_id = row["beat_id"].strip()
    if not shot_id:
        print(f"Missing shot ID for {beat_id or '(blank beat)'}")
        failed = True
    elif beat_id not in beats:
        print(f"Unknown beat ID in {shot_id}: {beat_id or '(blank)'}")
        failed = True
    else:
        covered.add(beat_id)

for beat_id, description in beats.items():
    if beat_id not in covered:
        print(f"Missing coverage: {beat_id} | {description}")
        failed = True

if not failed:
    print("Every required beat has a shot.")
raise SystemExit(1 if failed else 0)
Enter fullscreen mode Exit fullscreen mode

Run python check_coverage.py. The example prints Missing coverage: E02-B02 | Tessa recognizes the sender on the label. Add E02-S03,E02-B02 to the shot list, then run it again. A misspelled beat ID is flagged separately, so it can't silently count as coverage.

Review the shot the list points to

Watch or inspect E02-S03 at the target size. Can viewers see the sender long enough to register it? Does the shot come before the smile? An assigned ID verifies that you planned coverage. The image and its position in the cut tell you whether it works.

If the existing close-up already shows the label clearly, assign that shot to the beat. Otherwise, plan a readable insert and check the cut into Tessa's reaction. Either decision leaves a record the editor can use.

Top comments (0)