Variable layer height in the same gcode?


Can Luban generate variable layer height in the same gcode? I have a print that has some flat and gentle sloping surfaces at the base, and then quickly transitions to steep vertical. The vertical surfaces look amazing, even at 0.24mm layer height, but the flat surfaces are less than desirable! I’d like the first 4 to 5mm of the print be at 0.08mm layer height.


Maybe generate 2 gcodes . . . one at 0.08mm layer height and the second at 0.24mm . . . and then stitch them together at the appropriate z height?


No, you need to use Cura for that.
It’s good to speed things up, but in my case there was some color/surface changes between the different heights…
I guess you could do 2 gcodes and then cut and paste but…seems a lot of work.

1 Like

I wasn’t aware that Cura supported variable layer heights, but apparently it does. I haven’t tried it though. I’m generally not time constrained, so I just print high resolution most of the time.

Cura has a bit of setup, but once it’s done, it’s pretty much like using Luban. But if you really want to do it the hard way (there’s lot of things you can learn), brent113 posted about recovering a failed print by restarting mid print. Obviously it’s more complicated to mix the layer heights, but it should only be a bit more difficult.

1 Like