Skip to content

Commit 46e50b7

Browse files
committed
foo
1 parent 795f71a commit 46e50b7

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

gcodeplot.inx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<dependency type="executable" location="extensions">gcodeplot.py</dependency>
77
<param name="tab" type="notebook">
88
<page name="general" _gui-text="General Settings ">
9-
<param name="tool-mode" type="enum" _gui-text="Tool mode:" _gui-description="In draw mode, tool offset, overcut and inside-out sorting settings are ignored. In cut mode, shading is always disabled, optimization is disabled and inside-out sorting is always enabled. In custom mode, one can mix and match these.">
9+
<param name="tool-mode" type="enum" _gui-text="Tool mode:" _gui-description="In draw mode, tool offset, overcut and inside-out sorting settings are ignored. In cut mode, shading, optimization and direction are always disabled and inside-out sorting is always enabled. In custom mode, one can mix and match these.">
1010
<item value="draw">drawing</item>
1111
<item value="cut">cutting</item>
1212
<item value="custom">custom</item>
@@ -67,6 +67,13 @@
6767
<param name="shading-angle" type="float" min="0" max="180" precision="1" _gui-text="Shading angle (degrees)" _gui-description="Angle of shading lines">45</param>
6868
<param name="boolean-shading-crosshatch" type="boolean" _gui-text="Crosshatching" _gui-description="Crosshatching when shading">0</param>
6969
<param name="optimization-time" type="int" min="0" max="600" precision="1" _gui-text="Optimization time (sec.):" _gui-description="Maximum amount of time to spend optimizing pen movement (typical is half of it).">60</param>
70+
<param name="direction" type="enum" _gui-text="Preferred drawing direction (degrees):" _gui-description="If specified, the plotter will avoid moving against this direction. Currently not compatible with optimization. (Default: none)">
71+
<item value="none">none</item>
72+
<item value="0">0 (positive x)</item>
73+
<item value="90">90 (positive y)</item>
74+
<item value="180">180 (negative x)</item>
75+
<item value="270">270 (negative y)</item>
76+
</param>
7077
</page>
7178
<page name="cutting" _gui-text="Cutting Settings">
7279
<param name="tool-offset" type="float" min="0" max="1000" precision="2" _gui-text="Tool offset (mm):" _gui-description="Horizontal distance from tool rotation axis to cutting tip (default: 1)">1</param>

gcodeplot.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,7 @@ def help(error=False):
964964
shader.unshadedThreshold = 0
965965
optimizationTime = 0
966966
sortPaths = True
967+
directionAngle = None
967968
elif toolMode == 'draw':
968969
toolOffset = 0.
969970
sortPaths = False

0 commit comments

Comments
 (0)