LightBurn UDP automation + GCode import questions

Thanks for the suggestions!

There is no particular reason - originally we tried using a simple gcode converter & our own PySerial loop before we realized we could use LB directly. We’ve already tested with sending PNGs/JPEGs etc via UDP/LB, but again setting the origin is what is we’ve gotten stuck on (which is why we thought to go back to GCode - add in an initial X/Y offset).

Bigger picture: we have a script taking photos over time/doing some post-processing & using the LB UDP interface all via a python script to take said images → engrave them in a grid pattern on a larger board. I will take a look at setting up a LB project file - our other ideas are:

  • Use PySerial to move the controller to some initial X/Y offset before going through the UDP LB interface to start the actual engraving, worried we could run into contention issues with LB itself
  • During the post processing of the images, modify them to include transparent pixels such that the offset is baked into the image eg say we want to put the green image at a given X/Y, add in the red (transparent) pixels before dispatching the LB:

FORCELOAD should work great, thanks! I can’t believe I missed it in the listings here: Full list of LightBurn UDP commands :sweat_smile:

Appreciate the help! Any suggestions will be considered :grin: