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.8k stars 1.94k forks source link

No total print time placeholder in custom gcode #13604

Open galagithub opened 1 week ago

galagithub commented 1 week ago

Description of the bug

When using custom gcdoe there is no way to get the total print time (used for M73 command).

This is usefull to control the M73 command, or other custom tricks based on print time. Right now there is one M73 command as the first line of the gcode file, but that does not account for heating time or other pre-print stuff.

Please enable "print_time" placeholder to be used inside custom gcode as well, it is already available for filenaming. User should be able to use it for custom stuff.

Project file & How to reproduce

Try using "print_time" placeholder inside a custom gcode (for example the start-up section).

Checklist of files included above

Version of PrusaSlicer

2.8.1

Operating system

linux

Printer model

custom bed slinger