Renamed 'laser' to 'pen' throughout plotter-lod.py for better terminology
This commit is contained in:
@@ -567,7 +567,7 @@ class ArrangementGenetic:
|
||||
###
|
||||
################################################################################
|
||||
|
||||
class LaserGcode(inkex.Effect):
|
||||
class PenGcode(inkex.Effect):
|
||||
|
||||
def export_gcode(self, gcode):
|
||||
gcode_pass = gcode
|
||||
@@ -603,7 +603,7 @@ class LaserGcode(inkex.Effect):
|
||||
def __init__(self):
|
||||
inkex.Effect.__init__(self)
|
||||
|
||||
# Define command line arguments, inkex will use these to interface with the GUI defined in laser.ini
|
||||
# Define command line arguments, inkex will use these to interface with the GUI defined in Pen.ini
|
||||
|
||||
self.arguments = [
|
||||
{"name": "--directory", "type": str, "dest": "directory",
|
||||
@@ -617,16 +617,16 @@ class LaserGcode(inkex.Effect):
|
||||
"help": "Add numeric suffix to file name"},
|
||||
|
||||
{"name": "--plotter-command", "type": str, "dest": "plotter_command",
|
||||
"default": "M03", "help": "Laser gcode command"},
|
||||
"default": "M03", "help": "Pen gcode command"},
|
||||
|
||||
{"name": "--plotter-off-command", "type": str, "dest": "plotter_off_command",
|
||||
"default": "M05", "help": "Laser gcode end command"},
|
||||
"default": "M05", "help": "Pen gcode end command"},
|
||||
|
||||
{"name": "--plotter-disable-command", "type": str, "dest": "plotter_disable_command",
|
||||
"default": "M5", "help": "Plotter disable command"},
|
||||
|
||||
{"name": "--plotter-speed", "type": int, "dest": "plotter_speed", "default": 750,
|
||||
"help": "Laser speed (mm/min},"},
|
||||
"help": "Pen speed (mm/min},"},
|
||||
|
||||
{"name": "--travel-speed", "type": str, "dest": "travel_speed",
|
||||
"default": "3000", "help": "Travel speed (mm/min},"},
|
||||
@@ -1281,10 +1281,10 @@ class LaserGcode(inkex.Effect):
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# Laser
|
||||
# Pen
|
||||
#
|
||||
################################################################################
|
||||
def laser(self):
|
||||
def Pen(self):
|
||||
|
||||
def get_boundaries(points):
|
||||
minx, miny, maxx, maxy = None, None, None, None
|
||||
@@ -1559,10 +1559,10 @@ class LaserGcode(inkex.Effect):
|
||||
|
||||
# Don't call get_info() again - it would wipe out programmatically set orientation points
|
||||
# and we already have all the path information we need from the earlier get_info() call
|
||||
self.laser()
|
||||
self.Pen()
|
||||
|
||||
|
||||
e = LaserGcode()
|
||||
e = PenGcode()
|
||||
if target_version < 1.0:
|
||||
e.affect()
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user