ChrisWag91 / Inkscape-Lasertools-Plugin

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

Enhancement request - allow entering starting point relative to home. #15

Open horga83 opened 3 years ago

horga83 commented 3 years ago

Hi Chris,

How easy would it be to allow entering an X and Y offset to 0,0 so one could more easily place the engraving on the required object when burnt. Or even allow an object to be placed on a separate layer and rendered as shown in the attached file. The grid is a locked layer which would not be included in the rendering. I have used the locked layer mode with the J Tech Photonics Inkscape plugin and at least with Inkscape .92 it worked well. With Inkscape 1.0 it always seems to rendered the locked layer and they haven't fixed the code yet. I believe your code is a better way forward.

Screenshot from 2020-09-14 09-53-45

flabodotes commented 3 years ago

Hello @horga83 , I have setted Y offset using G-Code commands, for example:

Move to Y 90mm position : G0 X0 Y90 Z45;

Set as current position Y=0 (ignore the 90mm position) G92 Y0;

Then all the next movements have a 90mm Y axis offset.

image