summaryrefslogtreecommitdiff
path: root/lib/commands.py
diff options
context:
space:
mode:
authorLex Neva <lexelby@users.noreply.github.com>2018-10-30 17:43:21 -0600
committerGitHub <noreply@github.com>2018-10-30 17:43:21 -0600
commitbe833f898ff4912b4f1e54be37e6b8ff3c3f2c42 (patch)
treef9ea2a1e69c6ea916e7933f9d84cc4178bbec75f /lib/commands.py
parentd9525968a2462270ed5ef0f2ec1742c8ae325079 (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 'lib/commands.py')
-rw-r--r--lib/commands.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/commands.py b/lib/commands.py
index df82a8c4..3c739708 100644
--- a/lib/commands.py
+++ b/lib/commands.py
@@ -16,6 +16,12 @@ COMMANDS = {
N_("fill_end"): N_("Fill stitch ending position"),
# L10N command attached to an object
+ N_("satin_start"): N_("Auto-route satin stitch starting position"),
+
+ # L10N command attached to an object
+ N_("satin_end"): N_("Auto-route satin stitch ending position"),
+
+ # L10N command attached to an object
N_("stop"): N_("Stop (pause machine) after sewing this object"),
# L10N command attached to an object
@@ -38,7 +44,7 @@ COMMANDS = {
N_("stop_position"): N_("Jump destination for Stop commands (a.k.a. \"Frame Out position\")."),
}
-OBJECT_COMMANDS = ["fill_start", "fill_end", "stop", "trim", "ignore_object", "satin_cut_point"]
+OBJECT_COMMANDS = ["fill_start", "fill_end", "satin_start", "satin_end", "stop", "trim", "ignore_object", "satin_cut_point"]
LAYER_COMMANDS = ["ignore_layer"]
GLOBAL_COMMANDS = ["origin", "stop_position"]