Scrivener to Plottr

I don’t know who else may need this. I wanted to get my work-in-progress Scrivener project into Plottr (Disclaimer: no relation, just a happy user). Plottr can export to Scrivener, but not the other way around. So I ended up writing a little Python script and made it available here: github.com/dhaun/scrivx2pltr (Open Source under the MIT license)

Screenshots here: twitter.com/dirkhaun/status/1370759177413484545

At this point, it pretty much does what I wanted it to do. Except for maybe exporting character descriptions, should I ever figure out a way to read Scrivener’s RTF files into something Plottr can understand.

YMMV. Use at your own risk (it only reads from your Scrivener project but who knows, maybe I made a mistake somewhere and it will eat your hard drive :mrgreen: ).

2 Likes

Thanks. Your doc makes reference to the Scrivener Manuscript folder. My Scrivener does not create a Manuscript folder, unless you mean the folder with the name of my project that contains Files, Novel.scrive, Parts and Snapshot folders. Am I missing something?

I’m talking about the Manuscript folder in the Binder, that you see in Scrivener itself. It’s sometimes called Draft, depending on which template you used to create your Scrivener project (my script will figure out the proper name by itself).

Have you considered compiling your files to Markdown, and using that as the input to your script? If you can pull that off, then you can integrate your script into the compile process itself.

I haven’t tried this in a long time, but I think with the aid of collections, you can compile stuff that lies outside of the Draft folder. If not, you can move any Scrivener-editable files/folders into the Draft folder to live alongside your actual writing.

I hadn’t considered doing this on a regular basis. I only needed to re-plot a 50k+ word novel and didn’t want to create the scene cards in Plottr manually.

There seems to be some confusion here what the script does with things that are not in the Drafts/Manuscript folder. It can access those just fine. After all, it reads the files of the Scrivener project directly. It creates scene cards from Draft/Manuscript but can happily read your Characters and Places folders, too. And if I knew how to handle the RTF, I would import the rest into Plottr Notes.

My point was that compiling to MMD gives you the plain-text content of your documents without having to try and parse the RTF. Now that I’m thinking of it though… you could add in pandoc into your script’s pipeline; it can convert RTF to MMD or a number of other plain-text formats. That might work with Scrivener’s RTF format.

1 Like

Oh, I see. That’s something worth exploring. I was trying to do everything in the script itself but maybe I should let Scrivener do some of the work for me :slight_smile: