This commit is contained in:
arcadeperfect committed 2020-01-05 17:34:52 -05:00
commit 6267b2738a
1 file changed
+11 -12
+11 -12
View File
@@ -1,29 +1,28 @@
Forked from vishpat/svg2gcode
## SVG to Gcode converter for GRBL pen plotter
https://github.com/vishpat/svg2gcode
Forked from [vishpat/svg2gcode](https://github.com/vishpat/svg2gcode)
I found that the plugins for inkscape and illustrator would crash when I tried to convert SVG's with many thousands of lines to gcode.
I found that the plugins for inkscape and illustrator would crash when I tried to convert SVG's with many thousands of lines to gcode.
So I modified this to generate gcode for GRBL based pen plotter
**Usage as cli:**
_python convert.py source.svg destination.gcode_
>python convert.py source.svg destination.gcode
**or in bash**
_copy 's2g' to your path and run from anywhere_
copy 's2g' to your path and run from anywhere
>s2g source.svg target.gcode
**There is a brute force path optimisator algarithm. Very slow for large files, can be disabled in config.py**
**illustrator exports in points** regardless of your document settings
if units are set to points in the config file, we convert to mm on the fly
**Illustrator exports in points, not mm** regardless of your document settings.
If units are set to points in the config file, we convert to mm on the fly.
There are various settings you can change in config.py. Most notably, you must set an upper and lower position for the z axis.
zTravel is the height it will move to before traveling to the next stroke
zDraw should be the heiggit at which the pen will make contact with the paper
zDraw should be the height at which the pen will make contact with the paper
* zTravel is the height it will move to before traveling to the next stroke
* zDraw should be the height at which the pen will make contact with the paper
* zDraw should be the height at which the pen will make contact with the paper