scappex

Generate a yWriter 7 project from a Scapple outline.

This project is maintained by peter88213

Project homepage > Instructions for use


The scappex Python script creates a yWriter 7 project from a Scapple outline.

Instructions for use

Intended usage

The included installation script prompts you to create a shortcut on the desktop. You can launch the program by dragging a scap file and dropping it on the shortcut icon.

Command line usage

Alternatively, you can

usage: scappex.pyw [--silent] Sourcefile

positional arguments:

Sourcefile

The path of the Scapple outline file.

optional arguments:

--silent suppress error messages and the request to confirm overwriting

Mode of operation

Scappex generates a new yWriter project file with the same file name as the Scapple source file, but with the extension .yw7. It is placed in the same directory as the source file.

However, if the yWriter project already exists, it would not be overwritten. Character/Location/Item XML files are generated instead. They can be imported into any yWriter project.

Conversion rules

How to mark notes for export

Import styles (optional)

The scappex distribution comes with a sample Scapple project styles.scap including all required styles. You can either use this diagram as a template, or import the styles into your own Scapple diagram.

Screenshot: Import styles dialog

In the file picker dialog, select <unzipped scappex release folder>\sample\styles.scap. Then you can apply the styles via context menu.

Screenshot: Apply style menu

Mark scenes

Either apply the “Scene” style, if any, via context menu, or tick “Shadow” in the Inspector to mark the note as scene.

Screenshot: Set note shadow

To make the scene a “Notes” scene, either apply the “NotesScene” style, or make its border style “Cloud” in the Inspector.

Mark notes

Either apply the “Note” style, if any, via context menu, or make the note’s border style “Cloud” in the Inspector.

Mark tags

Either apply the “Tag” style, if any, via context menu, or make the note’s border style “Square” in the Inspector.

Mark locations

Either apply the “Location” style, if any, via context menu, or tick the big blue field above the text color swatch in the Inspector.

Screenshot: Set text color

Mark major characters

Either apply the “Major character” style, if any, via context menu, or tick the big red field above the text color swatch in the Inspector.

Mark minor characters

Either apply the “Minor character” style, if any, via context menu, or tick the big purple field above the text color swatch in the Inspector.

Mark items

Either apply the “Item” style, if any, via context menu, or tick the big green field above the text color swatch in the Inspector.

Custom configuration

You can override the default settings by providing a configuration file. Be always aware that faulty entries may cause program errors.

Global configuration

An optional global configuration file can be placed in the configuration directory in your user profile. It is applied to any project. Its entries override scappex’s built-in constants. This is the path: c:\Users\<user name>\.pywriter\scappex\config\scappex.ini

The setup script installs a sample configuration file containing scappex’s default values. You can modify or delete it.

Local project configuration

An optional project configuration file named scappex.ini can be placed in your project directory, i.e. the folder containing your yWriter and Timeline project files. It is only applied to this project. Its entries override scappex’s built-in constants as well as the global configuration, if any.

How to provide/modify a configuration file

The scappex distribution comes with a sample configuration file located in the sample subfolder. It contains scappex’s default settings and options. This file is also automatically copied to the global configuration folder during installation. You best make a copy and edit it.

This is the configuration explained:

[SETTINGS]

location_color = 0.0 0.0 1.0

# RGB text color that marks the locations in Scapple.

item_color = 0.0 0.5 0.0

# RGB text color that marks the items in Scapple.

major_chara_color = 1.0 0.0 0.0

# RGB text color that marks the major racters in Scapple.

minor_chara_color = 0.5 0.0 0.5

# RGB text color that marks the minor characters in Scapple.

[OPTIONS]

export_scenes = Yes

# Yes: create scenes from Scapple notes.

export_characters = Yes

# Yes: create characters from Scapple notes.

export_locations = Yes

# Yes: create location from Scapple notes.

export_items = Yes

# Yes: create items from Scapple notes.```

Installation path

The setup script installs scappex.pyw in the user profile. This is the installation path on Windows:

c:\Users\<user name>\.pywriter\scappex