Hi everyone,
I’m running a modified Sculpfun S9 setup equipped with an MKS TS35-R V2.0 motherboard (GRBL) and a custom motorized Z-axis module. I am currently using a pen holder tool to use the machine as a drawing plotter.
The machine works great with simple text vectors and basic shapes. However, I’ve encountered an issue when processing complex compound vectors, specifically when using the Offset Fill layer mode.
1. Missing Z-axis travel commands:
On certain complex shapes, LightBurn omits the Z-axis lift commands altogether during travel moves between shapes.
When inspecting the generated G-code, after an M5 (tool disable), LightBurn directly executes a rapid move G0 X... Y... without injecting the expected Z-up sequence (G91 $\rightarrow$ G0 Z3 $\rightarrow$ G90), followed by M3 to resume drawing. Because the Z-axis remains down, the pen drags across the paper during the travel move and leaves unwanted lines.
(Interestingly, in LightBurn’s Preview window (Alt + P), these travel moves are often shown as red travel lines, but the actual exported G-code text lacks the Z-height instructions).
I temporarily worked around this by running a regex search-and-replace in a text editor to manually inject the relative Z-up and Z-down commands (G91 / G0 Z3 / G90 and G91 / G0 Z-3 / G90) before and after those specific G0 travel lines.
2. Re-importing modified G-code:
After fixing the .gcode file in a text editor, I tried to import it back into LightBurn to send it to the machine, but LightBurn returns the console message: “Nothing imported”.
I would appreciate some help or guidance on these two points:
-
Why does LightBurn skip generating the Z-axis lift sequence on certain complex compound paths / Offset Fill shapes? Is this a known bug with path optimization or Z-axis scripts?
-
Is there a built-in way to load and stream externally modified G-code files directly through LightBurn without getting the “Nothing imported” error?
Thanks in advance for your help!
Archivo G-code:
Nuevo a empezar.gc (132,6 KB)
Trabajo sin modificar g-code
Trabajo con G-code arreglado.









