summaryrefslogtreecommitdiff
path: root/embroider_params.py
diff options
context:
space:
mode:
authorLex Neva <github@lexneva.name>2016-10-30 22:58:51 -0400
committerLex Neva <github@lexneva.name>2016-11-02 23:20:31 -0400
commit841e9196ba27176d606d448d30f6c2b6b6bbc739 (patch)
treeb011773bb41d7bc00f2f7aeb47e8b2a1c562ff27 /embroider_params.py
parent9249a3ae7730e62cdff282a33e989c1da5d00411 (diff)
major refactor
Split into classes for Fill, Stroke, and SatinColumn. Renamed params to be the same across XML attributes and OptionParser. Added distinct stitch length params for satin underlay. Renamed "satin underlay" to "contour underlay" and split out "center walk underlay" and "zigzag underlay". The code is ten times more readable, parameters make more sense, and everything is specified by the user in millimeters. Basically, everything is way better.
Diffstat (limited to 'embroider_params.py')
-rw-r--r--embroider_params.py22
1 files changed, 12 insertions, 10 deletions
diff --git a/embroider_params.py b/embroider_params.py
index ffa14f93..a2ec0960 100644
--- a/embroider_params.py
+++ b/embroider_params.py
@@ -15,21 +15,23 @@ class EmbroiderParams(inkex.Effect):
def __init__(self, *args, **kwargs):
inkex.Effect.__init__(self)
- self.params = ["zigzag_spacing",
- "stitch_length",
- "row_spacing",
- "max_stitch_length",
+ self.params = ["zigzag_spacing_mm",
+ "running_stitch_length_mm",
+ "row_spacing_mm",
+ "max_stitch_length_mm",
"repeats",
"angle",
- "hatching",
"flip",
"satin_column",
"stroke_first",
- "pull_compensation",
- "satin_underlay",
- "satin_underlay_inset",
- "satin_center_walk",
- "satin_zigzag_underlay_spacing",
+ "pull_compensation_mm",
+ "contour_underlay",
+ "contour_underlay_inset_mm",
+ "contour_underlay_stitch_length_mm",
+ "center_walk_underlay",
+ "center_walk_underlay_stitch_length_mm",
+ "zigzag_underlay",
+ "zigzag_underlay_inset_mm",
]
for param in self.params: