55 lines
1.1 KiB
Python
55 lines
1.1 KiB
Python
"""G-code emitted at the start of processing the SVG file"""
|
|
preamble = "$H\nG21 G90 G54\nG10 L2 P1 Z0"
|
|
|
|
|
|
"""G-code emitted at the end of processing the SVG file"""
|
|
postamble = "(postamble)"
|
|
|
|
"""G-code emitted before processing a SVG shape"""
|
|
shape_preamble = "(shape preamble)"
|
|
#shape_preamble = "Z0"
|
|
|
|
"""G-code emitted after processing a SVG shape"""
|
|
shape_postamble = "(shape postamble)"
|
|
#shape_postamble = "Z100)"
|
|
|
|
"""Print bed width in mm"""
|
|
bed_max_x = 200
|
|
|
|
"""Print bed height in mm"""
|
|
bed_max_y = 280
|
|
|
|
"""
|
|
Used to control the smoothness/sharpness of the curves.
|
|
Smaller the value greater the sharpness. Make sure the
|
|
value is greater than 0.1
|
|
|
|
"""
|
|
smoothness = 0.02
|
|
|
|
""" height that the z axis will use to travel between strokes """
|
|
zTravel = 2
|
|
|
|
""" height that the z axis will use to draw """
|
|
zDraw = 0
|
|
|
|
""" feed rate """
|
|
feed_rate = 80000
|
|
|
|
""" decimal precision of gcode"""
|
|
precision = 2
|
|
|
|
|
|
""" scale gcode to fit bed size"""
|
|
auto_scale = False
|
|
|
|
""" optimize path - slow for large files"""
|
|
optimise = True
|
|
|
|
"""
|
|
illustrator exports svg's in points, not mm
|
|
set to "mm" if you don't want to convert to mm
|
|
"""
|
|
#units = "points"
|
|
units = "mm"
|