summaryrefslogtreecommitdiff
path: root/templates/redwork.xml
diff options
context:
space:
mode:
authorClaudine Peyrat <88194877+claudinepeyrat06@users.noreply.github.com>2024-06-04 20:18:13 +0200
committerGitHub <noreply@github.com>2024-06-04 20:18:13 +0200
commit38206d4eade913cc846e00fd41e85b561e1c926b (patch)
treec03dd21cc60deed9767d3a75bcd81eb72fd373cc /templates/redwork.xml
parent65edab540072d96e00b5d28aef2573d399693a46 (diff)
Claudine/redwork (#2958)
* add redwork extension * fix issue when multiple lines have the same start and end output to underlay and top layer paths * use more networks algo * make style corrections * make starting point effective * organize in connected groups * ending point ending point could be used as starting point if no starting point is given * add a comment * don't add connected group if the whole design is connected, don't add connected group * remove too short paths * bug correction use length of linestring not the distance betweend endpoiints * allow parameters setting stitch_length for both redwork and underpath bean_stitch for redwork * style correction --------- Co-authored-by: Kaalleen <reni@allenka.de>
Diffstat (limited to 'templates/redwork.xml')
-rw-r--r--templates/redwork.xml42
1 files changed, 42 insertions, 0 deletions
diff --git a/templates/redwork.xml b/templates/redwork.xml
new file mode 100644
index 00000000..bd550d6e
--- /dev/null
+++ b/templates/redwork.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <name>Redwork</name>
+ <id>org.{{ id_inkstitch }}.redwork</id>
+ <param name="extension" type="string" gui-hidden="true">redwork</param>
+
+ <param name="notebook" type="notebook">
+ <page name="options" gui-text="Options">
+ <param name="merge_distance" type="float" precision="2" min="0" max="500"
+ gui-text="Connect lines below this distance (mm)"
+ gui-description="Unconnected lines may result in jump stitches">0.5</param>
+ <param name="minimum_path_length" type="float" precision="2" min="0" max="500"
+ gui-text="Minimum path length (mm)"
+ gui-description="Shorter paths will be removed from redwork result">0.5</param>
+ <param name="redwork_running_stitch_length_mm" type="float" precision="2" min="0" max="500"
+ gui-text="Redwork stitch length (mm)"
+ gui-description="set redwork stitch length">2.5</param>
+ <param name="redwork_bean_stitch_repeats" type="string" precision="0" min="0" max="500"
+ gui-text="Redwork bean stitch number of repeats"
+ gui-description="Redwork bean stitch number of repeats">0</param>
+
+ </page>
+ <page name="info" gui-text="Help">
+ <label>Redwork embroidery is a stroke art embroidery which passes every line exactly twice.</label>
+ <spacer />
+ <label>More information on our website</label>
+ <label appearance="url">https://inkstitch.org/docs/stroke-tools/#redwork</label>
+ </page>
+ </param>
+
+ <effect>
+ <object-type>all</object-type>
+ <effects-menu>
+ <submenu name="{{ menu_inkstitch }}" translatable="no">
+ <submenu name="Tools: Stroke" />
+ </submenu>
+ </effects-menu>
+ </effect>
+ <script>
+ {{ command_tag | safe }}
+ </script>
+</inkscape-extension>