-
Notifications
You must be signed in to change notification settings - Fork 116
/
sendto_silhouette.inx
199 lines (187 loc) · 14.9 KB
/
sendto_silhouette.inx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension translationdomain="inkscape-silhouette" xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<name>Send to Silhouette</name>
<id>com.github.fablabnbg.inkscape-silhouette.sendto_silhouette</id>
<dependency type="extension">org.inkscape.output.svg.inkscape</dependency>
<dependency type="executable" location="inx">sendto_silhouette.py</dependency>
<param name="active-tab" type="notebook">
<page name='silhouette' translatable="no" gui-text='Silhouette'>
<param name="x_off" type="float" min="-999.0" max="999.0" precision="2" translatable="no" gui-text="X-Offset [mm]">0.0</param>
<param name="y_off" type="float" min="-999.0" max="999.0" precision="2" translatable="no" gui-text="Y-Offset [mm]">0.0</param>
<param name="cuttingmat" type="optiongroup" appearance="combo" gui-text="Cutting Mat">
<option translatable="no" value="cameo_12x12">Cameo 12x12</option>
<option translatable="no" value="cameo_12x24">Cameo 12x24</option>
<option translatable="no" value="portrait_8x12">Portrait 8x12</option>
<option translatable="no" value="cameo_plus_15x15">Cameo Plus 15x15</option>
<option translatable="no" value="cameo_pro_24x24">Cameo Pro 24x24</option>
<option value="no_mat">None</option>
</param>
<param name="toolholder" type="optiongroup" appearance="combo" gui-text="Tool Holder">
<option value="1">Red (left tool)</option>
<option value="2">Blue (right tool)</option>
</param>
<param name="tool" type="optiongroup" appearance="combo" gui-text="Tool">
<option value="default">Media default</option>
<option value="pen">Pen</option>
<option value="cut">Cut</option>
<option value="autoblade">AutoBlade</option>
</param>
<label indent="2">'pen' executes the strokes exactly as sent, 'cut' adds small serifs to help the knive find its orientation at corners.</label>
<!-- CAUTION: keep media list in sync with silhouette/Graphtec.py -->
<param name="media" type="optiongroup" appearance="combo" gui-text="Media">
<option value="300">[P>0 S>0 D>=0] Custom: use non-zero Pressure and Speed below</option>
<option value="100">[P=27,S=10,D=1] SCard without Craft Paper Backing</option>
<option value="101">[P=27,S=10,D=1] Card with Craft Paper Backing</option>
<option value="102">[P=10,S= 5,D=1] Vinyl Sticker</option>
<option value="106">[P=14,S=10,D=1] Film Labels</option>
<option value="111">[P=27,S=10,D=1] Thick Media</option>
<option value="112">[P= 2,S=10,D=1] Thin Media</option>
<option value="113">[P=18,S=10,D=0] Pen</option>
<option value="120">[P=30,S=10,D=1] Bond Paper 13-28 lbs (105g)</option>
<option value="121">[P=30,S=10,D=1] Bristol Paper 57-67 lbs (145g)</option>
<option value="122">[P=30,S=10,D=1] Cardstock 40-60 lbs (90g)</option>
<option value="123">[P=30,S=10,D=1] Cover 40-60 lbs (170g)</option>
<option value="124">[P= 1,S=10,D=1] Film, Double Matte Translucent</option>
<option value="125">[P= 1,S=10,D=1] Film, Vinyl With Adhesive Back</option>
<option value="126">[P= 1,S=10,D=1] Film, Window With Kling Adhesive</option>
<option value="127">[P=30,S=10,D=1] Index 90 lbs (165g)</option>
<option value="128">[P=20,S=10,D=1] Inkjet Photo Paper 28-44 lbs (70g)</option>
<option value="129">[P=27,S=10,D=1] Inkjet Photo Paper 45-75 lbs (110g)</option>
<option value="130">[P=30,S= 3,D=1] Magnetic Sheet</option>
<option value="131">[P=30,S=10,D=1] Offset 24-60 lbs (90g)</option>
<option value="132">[P= 5,S=10,D=1] Print Paper Light Weight</option>
<option value="133">[P=25,S=10,D=1] Print Paper Medium Weight</option>
<option value="134">[P=20,S=10,D=1] Sticker Sheet</option>
<option value="135">[P=20,S=10,D=1] Tag 100 lbs (275g)</option>
<option value="136">[P=30,S=10,D=1] Text Paper 24-70 lbs (105g)</option>
<option value="137">[P=30,S=10,D=1] Vellum Bristol 57-67 lbs (145g)</option>
<option value="138">[P=30,S=10,D=1] Writing Paper 24-70 lbs (105g)</option>
</param>
<param name="speed" type="int" min="0" max="30" gui-text="Speed">0</param>
<param name="pressure" type="int" min="0" max="33" gui-text="Pressure">0</param>
<param name="depth" type="int" min="-1" max="10" gui-text="Blade Depth (for AutoBlade)">-1</param>
<label indent="2">Use speed=0, pressure=0, depth=-1 to take the media defaults. Pressure values of 19 or more could trigger the trackenhancing feature, which means a movement along the full media height before start. Beware.</label>
<param name="preview" type="bool" gui-text="Preview: show cut pattern before sending">true</param>
<label indent="2">Note that for Preview to operate, the `matplotlib' package for Python must be installed.</label>
</page>
<page name='opt' gui-text='Options'>
<param name="dashes" type="bool" gui-text="Convert to dashes">false</param> <label indent="2">Convert paths with dashed strokes to separate subpaths for perforated cuts.</label>
<param name="autocrop" type="bool" gui-text="Trim margins">false</param> <label indent="2">Shift to the top lefthand corner, then do offsets.</label>
<param name="bbox-only" type="bool" gui-text="Draft Bounding Box Only">false</param>
<label indent="2">To see the used area, tick the checkmark above and use pressure=1 (or better remove tool)</label>
<param name="multipass" type="int" min="1" max="8" gui-text="Repeat each stroke">1</param>
<param name="reversetoggle" type="bool" gui-text="Cut in opposite direction(s)">false</param>
<param name="endposition" type="optiongroup" appearance="combo" gui-text="Position After Cutting">
<option value="start">Start Position</option>
<option value="below">Below Cut-Out</option>
</param>
<label indent="2">Choose position of blade relative to the media after cutting. "Below Cut-Out" is ideal for using cross-cutter.</label>
<param name="end_offset" type="float" min="-3000.0" max="3000.0" gui-text="End Position Offset [mm]">0.0</param>
<label indent="2">Adjusts the final position selected above; currently only implemented for "Below Cut-Out". Allows you to leave space between cuts (or with a negative value, position above the bottom of the cut, which can reduce wasted material for repeating certain patterns).</label>
</page>
<page name='reg' gui-text='Regmarks'>
<param name="regmark" type="bool" gui-text="The document has registration marks">false</param>
<label indent="2">The document contains printed registration marks</label>
<param name="regsearch" type="bool" gui-text="Search for the registration marks automatically">false</param>
<label indent="2">Search for the registration marks automatically. Seems on some devices there is another mode, where you can set the references manually.</label>
<param name="regoriginx" type="float" min="0.0" max="10000" gui-text="Position of regmark from document left [mm]">10</param>
<param name="regoriginy" type="float" min="0.0" max="10000" gui-text="Position of regmark from document top [mm]">10</param>
<label indent="2">Distance of the registration mark edges</label>
<label indent="2">Note: If mark offset from document top and left spacing is zero, then it is calculated from Regmark layer.</label>
<param name="regwidth" type="float" min="0.0" max="10000" gui-text="X mark to mark distance [mm]">0</param>
<param name="reglength" type="float" min="0.0" max="10000" gui-text="Y mark to mark distance [mm]">0</param>
<label indent="2">Distance between registration mark edges</label>
<label indent="2">Note: If width and length spacing is zero, then it is calculated from Regmark layer or current document size.</label>
</page>
<page name='advanced' gui-text='Advanced'>
<param name="wait_done" type="bool" gui-text="Wait til done, after all data is sent">false</param>
<label indent="2">Keep dialog open until device becomes idle again.</label>
<param name="sharpencorners" type="bool" gui-text="Sharpen Corners">false</param> <label indent="2">Lift head at sharp corners</label>
<param name="sharpencorners_start" type="float" min="0.1" max="0.9" gui-text="Sharpen Corners - Start Ext. [mm]">0.1</param>
<param name="sharpencorners_end" type="float" min="0.1" max="0.9" gui-text="Sharpen Corners - End Ext. [mm]">0.1</param>
<param name="overcut" type="float" min="0.0" max="5.0" gui-text="Overcut on closed paths [mm]">0.5</param>
<param name="strategy" type="optiongroup" appearance="combo" gui-text="Cutting Strategy">
<option value="zorder">Z-Order</option>
<option value="matfree">Without mat</option>
<option value="mintravel">Minimized Traveling</option>
<option value="mintravelfull">Minimized Traveling (fully optimized)</option>
<option value="mintravelfwd">Minimized Traveling (no reverse)</option>
</param>
<label indent="2" xml:space="preserve">
Z-Order: Leaf cut order as defined in input svg.
Without mat: Subdivide, sort, and choose cut directions, so that a cutting mat is not needed in most cases.
Minimal Traveling: Find the nearest startpoint to minimize travel movements
Minimal Traveling (fully optimized): Additionally search startpoints in closed paths
Minimal Traveling (no reverse): Like fully optimized but respect original orientations of paths</label>
<param name="orient_paths" type="optiongroup" appearance="combo" gui-text="Pre-orient paths">
<option value="natural">As in SVG</option>
<option value="desy">Descending Y (pull through tool)</option>
<option value="ascy">Ascending Y (push into tool)</option>
<option value="desx">Descending X (right to left)</option>
<option value="ascx">Ascending X (left to right)</option>
</param>
<label indent="2">Note: Some strategies like "Without Mat" may reverse some path orientations, so final cut may not strictly obey orientation chosen above.</label>
<param name="fuse_paths" type="bool" gui-text="Fuse coincident paths">true</param>
<label indent="2">Merges consecutive paths that end and start with same point to minimize tool lifting. (Most effective with the Min Travel strategies.)</label>
<param name="sw_clipping" type="bool" gui-text="Enable Software Clipping">true</param>
</page>
<page name="logdump" gui-text="Log and Dump">
<param name="logfile" type="path" mode="file_new" filetypes="log" gui-text="Save log messages in file"></param>
<label indent="2">Note: If path is empty, system default will be chosen.</label>
<param name="log_paths" type="bool" indent="2" gui-text="Include final cut paths in log (for debugging)">false</param>
<param name="append_logs" type="bool" indent="2" gui-text="Append to log/dump files rather than overwriting">false</param>
<param name="cmdfile" type="path" mode="file_new" filetypes="cut" gui-text="Transcribe cutter commands to file"></param>
<param name="inc_queries" type="bool" indent="2" gui-text="Include cutter queries in command transcript">false</param>
<param name="dry_run" type="bool" gui-text="Dry Run: do not send commands to device">false</param>
<!-- CAUTION: keep hardware list in sync with silhouette/Graphtec.py -->
<param name="force_hardware" type="optiongroup" appearance="combo" gui-text="Override cutter model">
<option value="DETECT">-- as detected --</option>
<option translatable="no" value="Silhouette_Portrait">Silhouette Portrait</option>
<option translatable="no" value="Silhouette_Portrait2">Silhouette Portrait 2</option>
<option translatable="no" value="Silhouette_Portrait3">Silhouette Portrait 3</option>
<option translatable="no" value="Silhouette_Cameo">Silhouette Cameo</option>
<option translatable="no" value="Silhouette_Cameo2">Silhouette Cameo 2</option>
<option translatable="no" value="Silhouette_Cameo3">Silhouette Cameo 3</option>
<option translatable="no" value="Silhouette_Cameo4">Silhouette Cameo 4</option>
<option translatable="no" value="Silhouette_Cameo4_Plus">Silhouette Cameo 4 Plus</option>
<option translatable="no" value="Silhouette_Cameo4_Pro">Silhouette Cameo 4 Pro</option>
<option translatable="no" value="Silhouette_Cameo5">Silhouette Cameo 5</option>
<option translatable="no" value="Silhouette_Cameo5_Plus">Silhouette Cameo 5 Plus</option>
<option translatable="no" value="Craft_Robo_CC200-20">Craft Robo CC200-20</option>
<option translatable="no" value="Craft_Robo_CC300-20">Craft Robo CC300-20</option>
<option translatable="no" value="Silhouette_SD_1">Silhouette SD 1</option>
<option translatable="no" value="Silhouette_SD_2">Silhouette SD 2</option>
</param>
<label indent="2">Using any setting other than `as detected' is not recommended except when performing a dry run.</label>
</page>
<page name='blade' gui-text='Blade Setting'>
<label xml:space="preserve">
Always use the least amount of blade possible.
1) Take a sheet of the media you are trying to cut and fold it in half.
2) Take the blade out of the machine, set it to 1 and hold it in your hand as you would a pen but held vertically as it would be in the machine.
3) Get your folded media and with your blade held like a pen but kept vertically press firmly down on the media and 'draw' a line.
4) Next have a look at the media; with the correct setting you should have just cut a line through the top layer of the folded card without cutting in to the back layer. If you have not cut through the media, increase the blade by 1 position and repeat from step 3.
5) Keep doing this until you reach the correct setting to cut the top layer without cutting the back.
6) Once this is done the blade can be put back in to the machine.
</label>
<param name="bladediameter" type="float" min="0.0" max="2.3" gui-text="Diameter of the used blade type [mm]">0.9</param>
<label>Correct value for the silhouette blade is 0.9mm</label>
</page>
<page name='about' gui-text='About'>
<label translatable="no">inkscape-silhouette extension</label>
<label translatable="no" appearance="url" indent="1">https://github.com/fablabnbg/inkscape-silhouette</label>
<label translatable="no">by Jürgen Weigert [juergen@fabmail.org] and contributors</label>
<!-- Keep in sync with sendto_silhouette.py line 7 __version__ = ... -->
<label name="about_version" translatable="no">Version 1.29</label>
</page>
</param>
<effect needs-live-preview="false" >
<object-type>all</object-type>
<effects-menu>
<submenu name="Export"/>
</effects-menu>
</effect>
<script>
<command location="inx" interpreter="python">sendto_silhouette.py</command>
</script>
</inkscape-extension>