prusa3d / PrusaSlicer

G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)
https://www.prusa3d.com/prusaslicer/
GNU Affero General Public License v3.0
7.63k stars 1.92k forks source link

New G-code variables #11313

Open martin-badin opened 12 months ago

martin-badin commented 12 months ago

Description

Hello. Is it possible to extend the list of variables available for G-code? I would like to create a similar G-code like Cura but there are missing variables like

Version of PrusaSlicer

2.6.1

Operating system

macOs Ventura 13.5.2

Printer model

Elegoo Neptune 3 Plus

ghylander commented 8 months ago

Total estimated time and used filament are already present, at the end of the gcode

image

I too am however interested in time for each layer and MIN/MAX X/Y/Z

Doesn't look too difficult honestly, as the size data is already used in the slicer: image

@martin-badin if you are especially interested in MAXZ (which I am too), in your post-processing script you can count the number of instances of layer change macro calls, subtract 1 (the macro definition) then multiply by layer height