Comment on [Klipper] How can I read the layer height from a gcode file and pass it on as a variable?
fhein@lemmy.world 3 months ago
The only issue is (layer height), which of course can change from print to print.
Technically not the only issue 😀 it can also change from layer to layer.
Maybe calculate it from the length of filament being pushed out / the length of the movement * filament cross section? I’m on my phone so I can’t check right now but that info should be possible to extract from the gcode iirc
papalonian@lemmy.world 3 months ago
I realized a little bit into finding a solution that this would be a limitation. I’m using Cura which AFAIK doesn’t support traditional “variable layer height” like prusaslicer. It does however allow for different layer height for infill; if I ever decide to do that, I can just adjust the infill print speed accordingly.
I actually got this working btw, I had to learn a bit about how variables work in Python/gcode but it’s working like I charm! I find my max volumetric flow, set it in the material cfg, and it just runs prints right below my max extrusion rate. Everything has come off the printer looking perfect in between filament types, no re-slicing required!