Generate Countersheets or Hexmaps from Command-Line

I'm adding the following paragraph to the readme.html file of the next release of Inkscape Boardgame Extensions:

For advanced users, if you want to use these scripts from the command-line,
there's little to stop you. You need to have the
lxml python module
and inkex.py (from the Inkscape extensions directory) in your python
module path
(PYTHONPATH) and then execute the script with the SVG
file as first argument (after any options). For a list of
options for a command you can execute for example:
python countersheet.py --help
As an example on how to create a countersheet without starting Inkscape:
python countersheet.py -d units.csv counter_templates.svg > countersheet.svg
This can be very useful if you write scripts to automate creation of all
components for a game in a single command, or to automatically update
images in modules for VASSAL (or similar) (see the -b, -w, -y, and -f
options). You may also have to use this technique when producing big
countersheets as Inkscape will unfortunately
easily run out of memory and be unable to display too big SVG files.
Notice that the output SVG is written to standard output of the script.

Thought it could be useful to some of you, even if I understand most people will be happier just
clicking around doing things in the GUI, which is of course fine as well (execpt when you run out
of memory, but buying more RAM should fix that as well :) ).

Views: 40

Comment

You need to be a member of ConsimWorld to add comments!

Join ConsimWorld

Help Center

Latest Activity

Eric Walters left a comment for Roger Knowles
"Welcome to the CONSIMWORLD Social Website, Roger!  My mom grew up on the East Side (Cleveland…"
9 hours ago
Roger Knowles is now a member of ConsimWorld
9 hours ago
Dave Smith joined David JULIEN's group
Thumbnail

Lock 'n Load

This is the place to discuss Lock 'n Load tactical system.See More
Tuesday
Dave Smith updated their profile
Monday
Michael Stultz left a comment for Eric Walters
"Thank you, Eric.  Like you, I enjoy a variety of games, be they smaller faster games or…"
Monday
Michael Stultz left a comment for Rick Barber
"Rick,  do you produce for purchase a larger map for Columbia Games’ Gettysburg Badges of…"
Sunday
Eric Walters left a comment for Michael Stultz
"Michael, welcome to the CONSIMWORLD Social Website!  Hope you find some Groups that you want…"
Sunday
Michael Stultz is now a member of ConsimWorld
Sunday

Groups

Events

Members

CSW Related Links

Please be sure to check-out these CSW services.

© 2019   Created by John Kranz.   Powered by

Badges  |  Report an Issue  |  Terms of Service