<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Daniel Foster</title>
    <description>The latest articles on DEV Community by Daniel Foster (@danielfoster5).</description>
    <link>https://dev.to/danielfoster5</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4017445%2F80a3caa6-5630-460e-bc0f-25616f09e6b2.png</url>
      <title>DEV Community: Daniel Foster</title>
      <link>https://dev.to/danielfoster5</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/danielfoster5"/>
    <language>en</language>
    <item>
      <title>Keep Short Drama Storyboard Audio in Sync With Python</title>
      <dc:creator>Daniel Foster</dc:creator>
      <pubDate>Tue, 24 Nov 2026 08:09:44 +0000</pubDate>
      <link>https://dev.to/danielfoster5/keep-short-drama-storyboard-audio-in-sync-with-python-4lfk</link>
      <guid>https://dev.to/danielfoster5/keep-short-drama-storyboard-audio-in-sync-with-python-4lfk</guid>
      <description>&lt;p&gt;You add two seconds to a storyboard shot so the audience can see a clue. Suddenly the dialogue in the next shot starts before the clue appears. Fixing one timing mistake by hand is easy. Across several episodes, keeping the scratch audio aligned with revised panels becomes a bookkeeping problem.&lt;/p&gt;

&lt;p&gt;A small Python script can calculate the new cue times from a list of panel durations. Use these times to reposition the temporary dialogue in your editor. The script leaves the audio files untouched, so you keep control over the actual cut.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with the action that triggers the line
&lt;/h2&gt;

&lt;p&gt;Imagine a short drama set in an upholstery shop. Lia lifts a fabric sample to reveal a burn mark and says, "There. Under the seam." Her customer leans forward to inspect it.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Panel&lt;/th&gt;
&lt;th&gt;Duration before&lt;/th&gt;
&lt;th&gt;Duration after&lt;/th&gt;
&lt;th&gt;Picture&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;06&lt;/td&gt;
&lt;td&gt;3 s&lt;/td&gt;
&lt;td&gt;5 s&lt;/td&gt;
&lt;td&gt;Lia lifts the fabric.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;07&lt;/td&gt;
&lt;td&gt;4 s&lt;/td&gt;
&lt;td&gt;4 s&lt;/td&gt;
&lt;td&gt;Her finger rests beside the visible mark.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;08&lt;/td&gt;
&lt;td&gt;3 s&lt;/td&gt;
&lt;td&gt;3 s&lt;/td&gt;
&lt;td&gt;The customer leans closer.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The line begins half a second into panel 07. Before the edit, that means 3.5 seconds into the scene. After the edit, it means 5.5 seconds. The same half-second delay still gives viewers time to see what Lia is pointing at.&lt;/p&gt;

&lt;p&gt;If you're working from a multi-episode Word script, &lt;a href="https://dramapilot.com/storyboard" rel="noopener noreferrer"&gt;DramaPilot Storyboard Writer&lt;/a&gt; can help you review the episode split and generate the panels. Number the approved stills consistently in your own cue sheet. That way, a change to one panel has a clear reference for the editor.&lt;/p&gt;

&lt;h2&gt;
  
  
  Calculate cue positions with Python
&lt;/h2&gt;

&lt;p&gt;You need Python 3 and a list of panels in playback order. Create a file named &lt;code&gt;cue_times.py&lt;/code&gt; with the following example. Times are in seconds. The panel data stands in for a timing sheet you maintain.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;panels&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"06"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"07"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"08"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;cues&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"07"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"There. Under the seam."&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="n"&gt;starts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="n"&gt;durations&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="n"&gt;elapsed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.0&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;panel&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;seconds&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;panels&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;panel&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;starts&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;seconds&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;ValueError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Check panel IDs and durations"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;starts&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;panel&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;elapsed&lt;/span&gt;
    &lt;span class="n"&gt;durations&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;panel&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;seconds&lt;/span&gt;
    &lt;span class="n"&gt;elapsed&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="n"&gt;seconds&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;panel&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;offset&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;cues&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;panel&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;starts&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="n"&gt;offset&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;durations&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;panel&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;ValueError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"Invalid cue for panel {panel}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{starts[panel] + offset:.2f}s | {panel} | {line}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run &lt;code&gt;python cue_times.py&lt;/code&gt;. The revised timing should be:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;5.50s | 07 | There. Under the seam.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Change panel 06 back to three seconds and run it again. The cue returns to 3.50 seconds. A later panel can change independently without affecting this earlier cue.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use the results in your animatic
&lt;/h2&gt;

&lt;p&gt;An animatic is a timed preview of storyboard stills. Tools such as &lt;a href="https://boords.com/docs/animatics" rel="noopener noreferrer"&gt;Boords&lt;/a&gt; let you adjust frame lengths against an uploaded soundtrack. In an editing timeline, locate the start of the spoken phrase and check whether it begins at the calculated time. Some edits already move the audio with the pictures. Listen before applying another shift.&lt;/p&gt;

&lt;p&gt;The script calculates cue starts relative to the beginning of the scene. It doesn't measure how long an actor takes to say a line or change the audio file. If a phrase runs into the next panel, check whether the overlap is intentional. Preserve enough time for the customer to respond.&lt;/p&gt;

&lt;p&gt;Before locking the scene, replay the reveal at normal speed. The audience should see the mark before Lia names it. If the line still sounds early despite the correct timestamp, revise the cue offset or the panel itself. A timestamp gives you a repeatable starting point for that decision.&lt;/p&gt;

</description>
      <category>automation</category>
      <category>python</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Turn One Short Drama Idea Into an Episode Outline</title>
      <dc:creator>Daniel Foster</dc:creator>
      <pubDate>Sat, 21 Nov 2026 07:42:35 +0000</pubDate>
      <link>https://dev.to/danielfoster5/turn-one-short-drama-idea-into-an-episode-outline-33mh</link>
      <guid>https://dev.to/danielfoster5/turn-one-short-drama-idea-into-an-episode-outline-33mh</guid>
      <description>&lt;p&gt;A dry cleaner finds a wedding ring in a coat due back by noon. That sentence gives you a character, an object and a deadline. It can still run out of story after one scene. To build an episode outline, decide what the cleaner does with the ring and let that choice cause the next problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  Give the first choice a consequence
&lt;/h2&gt;

&lt;p&gt;In this fictional example, Sam calls the customer listed on the ticket. The caller describes the coat correctly but says there was nothing in the pockets. Sam checks the handwritten intake number and realizes the labels on two coats may have been switched. End the first episode with Sam deciding to hold both bags until she can verify the names. Her choice means the next customer will arrive to find their order missing.&lt;/p&gt;

&lt;p&gt;Now give each episode an action that leaves something different behind.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Episode&lt;/th&gt;
&lt;th&gt;What Sam does&lt;/th&gt;
&lt;th&gt;What the next episode inherits&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;One&lt;/td&gt;
&lt;td&gt;Holds both coats after spotting the possible mix-up&lt;/td&gt;
&lt;td&gt;A customer is about to arrive for an order Sam won't hand over&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Two&lt;/td&gt;
&lt;td&gt;Asks the arriving customer to check the coat's repair slip&lt;/td&gt;
&lt;td&gt;The slip links the coat with the torn pocket to the customer who came in for that repair&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Three&lt;/td&gt;
&lt;td&gt;Calls both customers in and uses the slip to sort out the orders&lt;/td&gt;
&lt;td&gt;The rightful owner gets the ring, and Sam admits why the pickup was delayed&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Read only the middle column. If every row says some version of “looks for the owner,” the outline needs a decision with a consequence you can show. Let a character hold something back, set a deadline or make a promise that the next episode has to honor.&lt;/p&gt;

&lt;p&gt;The table is enough to start a first draft. If you use &lt;a href="https://dramapilot.com/script" rel="noopener noreferrer"&gt;DramaPilot Script Generator&lt;/a&gt;, put the deadline and Sam's decision into the plot idea. Read the resulting outline with the table beside it. Circle the first place where an action has stopped carrying forward.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
