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.
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.
Alternatively, you can
usage: scappex.pyw [--silent] Sourcefile
Sourcefile
The path of the Scapple outline file.
--silent
suppress error messages and the request to confirm overwriting
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.
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.
In the file picker dialog, select <unzipped scappex release folder>\sample\styles.scap
. Then you can apply the styles via context menu.
Either apply the “Scene” style, if any, via context menu, or tick “Shadow” in the Inspector to mark the note as scene.
To make the scene a “Notes” scene, either apply the “NotesScene” style, or make its border style “Cloud” in the Inspector.
Either apply the “Note” style, if any, via context menu, or make the note’s border style “Cloud” in the Inspector.
Either apply the “Tag” style, if any, via context menu, or make the note’s border style “Square” in the Inspector.
Either apply the “Location” style, if any, via context menu, or tick the big blue field above the text color swatch in the Inspector.
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.
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.
Either apply the “Item” style, if any, via context menu, or tick the big green field above the text color swatch in the Inspector.
You can override the default settings by providing a configuration file. Be always aware that faulty entries may cause program errors.
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.
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.
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.
#
number sign. In the example, they refer to the code line immediately above.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.```
The setup script installs scappex.pyw in the user profile. This is the installation path on Windows:
c:\Users\<user name>\.pywriter\scappex