diff options
| author | Lex Neva <lexelby@users.noreply.github.com> | 2018-10-30 17:43:21 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-30 17:43:21 -0600 |
| commit | be833f898ff4912b4f1e54be37e6b8ff3c3f2c42 (patch) | |
| tree | f9ea2a1e69c6ea916e7933f9d84cc4178bbec75f /templates | |
| parent | d9525968a2462270ed5ef0f2ec1742c8ae325079 (diff) | |
new extension: Auto-Route Satin Columns (#330)
**video demo:** https://www.youtube.com/watch?v=tbghtqziB1g
This branch adds a new extension, Auto-Route Satin Columns, implementing #214! This is a huge new feature that opens the door wide for exciting stuff like lettering (#142).
To use it, select some satin columns and run the extension. After a few seconds, it will replace your satins with a new set with a logical stitching order. Under-pathing and jump-stitches will be added as necessary, and satins will be broken to facilitate jumps. The resulting satins will retain all of the parameters you had set on the original satins, including underlay, zig-zag spacing, etc.
By default, it will choose the left-most extreme as the starting point and the right-most extreme as the ending point (even if these occur partway through a satin such as the left edge of a letter "o"). You can override this by attaching the new "Auto-route satin stitch starting/ending position" commands.
There's also an option to add trims instead of jump stitches. Any jump stitch over 1mm is trimmed. I might make this configurable in the future but in my tests it seems to do a good job. Trim commands are added to the SVG, so it's easy enough to modify/delete as you see fit.
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/auto_satin.inx | 23 | ||||
| -rw-r--r-- | templates/convert_to_satin.inx | 4 | ||||
| -rw-r--r-- | templates/cut_satin.inx | 4 | ||||
| -rw-r--r-- | templates/flip.inx | 6 |
4 files changed, 33 insertions, 4 deletions
diff --git a/templates/auto_satin.inx b/templates/auto_satin.inx new file mode 100644 index 00000000..d825d8a1 --- /dev/null +++ b/templates/auto_satin.inx @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>{% trans %}Auto-Route Satin Columns{% endtrans %}</name> + <id>org.inkstitch.auto_satin.{{ locale }}</id> + <dependency type="executable" location="extensions">inkstitch.py</dependency> + <dependency type="executable" location="extensions">inkex.py</dependency> + <param name="trim" type="boolean" _gui-text="{% trans %}Trim jump stitches{% endtrans %}">true</param> + <param name="preserve_order" type="boolean" _gui-text="{% trans %}Preserve order of satin columns{% endtrans %}">false</param> + <param name="extension" type="string" gui-hidden="true">auto_satin</param> + <effect> + <object-type>all</object-type> + <effects-menu> + <submenu name="Ink/Stitch"> + <submenu name="{% trans %}English{% endtrans %}"> + <submenu name="{% trans %}Satin Tools{% endtrans %}" /> + </submenu> + </submenu> + </effects-menu> + </effect> + <script> + <command reldir="extensions" interpreter="python">inkstitch.py</command> + </script> +</inkscape-extension> diff --git a/templates/convert_to_satin.inx b/templates/convert_to_satin.inx index 50886d4a..d214502a 100644 --- a/templates/convert_to_satin.inx +++ b/templates/convert_to_satin.inx @@ -9,7 +9,9 @@ <object-type>all</object-type> <effects-menu> <submenu name="Ink/Stitch"> - <submenu name="{% trans %}English{% endtrans %}" /> + <submenu name="{% trans %}English{% endtrans %}"> + <submenu name="{% trans %}Satin Tools{% endtrans %}" /> + </submenu> </submenu> </effects-menu> </effect> diff --git a/templates/cut_satin.inx b/templates/cut_satin.inx index b8d9e5a5..4d330f06 100644 --- a/templates/cut_satin.inx +++ b/templates/cut_satin.inx @@ -9,7 +9,9 @@ <object-type>all</object-type> <effects-menu> <submenu name="Ink/Stitch"> - <submenu name="{% trans %}English{% endtrans %}" /> + <submenu name="{% trans %}English{% endtrans %}"> + <submenu name="{% trans %}Satin Tools{% endtrans %}" /> + </submenu> </submenu> </effects-menu> </effect> diff --git a/templates/flip.inx b/templates/flip.inx index ebeb4090..ef2000d6 100644 --- a/templates/flip.inx +++ b/templates/flip.inx @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> - <name>{% trans %}Flip Satin Columns{% endtrans %}</name> + <name>{% trans %}Flip Satin Column Rails{% endtrans %}</name> <id>org.inkstitch.flip_satins.{{ locale }}</id> <dependency type="executable" location="extensions">inkstitch.py</dependency> <dependency type="executable" location="extensions">inkex.py</dependency> @@ -9,7 +9,9 @@ <object-type>all</object-type> <effects-menu> <submenu name="Ink/Stitch"> - <submenu name="{% trans %}English{% endtrans %}" /> + <submenu name="{% trans %}English{% endtrans %}"> + <submenu name="{% trans %}Satin Tools{% endtrans %}" /> + </submenu> </submenu> </effects-menu> </effect> |
