Convert dialogue from Final Draft screenplay to Renpy format.
The aim is to quickly convert dialogue written in Final Draft to a format suitable for importing to Renpy.
- Actions are converted to narrator dialogue, so
"[ACTION]"
- Character and Dialogue are converted to the format
[CHARACTER] "[DIALOGUE]"
- Final Draft General type is converted to Renpy Label. Spaces are converted to underscores. So a General of
This is a label
would becomelabel This_is_a_label:
- Transition type is converted to scene. So a transition that reads
bg office
would becomescene bg office
(automatically converted to lower case) - Parenthetical is converted to a comment. So a parenthetical that reads
(Remember to do xyz here)
becomes# Remember to do xyz here
- Single and double curly quotes are changed to straight quotes in the dialogue and action text only.
- Everything else in the screenplay is ignored
Output is to a text file with indents.
python FDtoRenpy.py YourFinalDraftScript.fdx YourOutputFile.txt
Ensure there are no spaces in filenames and that the FD script is not open in Final Draft.
Final Draft sometimes adds a wiggly line underneath a word it doesn't know. That formatting appears in the XML too and will affect the conversion, so it's best to get rid of it first. You can usually do that by either confirming the spelling of the word, or just highlighting the whole block and reapplying the style (e.g. transition, dialogue).
I am not a Python dev! There are probably much better ways to do this, but this way was quick and it does the job :)
Also, please be aware that I have only done very limited testing on this and I am using Final Draft 10.
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.