ChrisWag91 / Inkscape-Lasertools-Plugin

A simple plugin to convert inkscape vector graphics to Gcode for DIY laser engravers
GNU General Public License v3.0
38 stars 27 forks source link

Feature: Allow multiple command in same line #38

Open JuPrgn opened 9 months ago

JuPrgn commented 9 months ago

Hi,

Thank you for this plugin it works very well !

I would like to use 2 commands to turn on and off laser, I have to run M400 to wait for end of planned move before enabling or stopping the laser (old Marlin firmware), or DWELL commands. Given DWELL allways follow turn on or off M400 is not required for this line.

I would like to write for example :
M400;M42 P44 S255 and this would result in GCODE as :

M400
M42 P44 S255

instead of current :

M400;M42 P44 S255

Is there a way to run multiple commands in the current version ? If this is a new feature I guess we would have to parse laser-off-command and replace ';' with '\n;' but that was not clear to me where this change should be done ?