Add printing_filament_types placeholder for the output filename (#14706)

Adds the printing_filament_types placeholder. It lists the filament types that are actually printed on the plate, with duplicates removed, in filament order, joined with "_" (for example ABS_PLA). It works in the file name template and in custom G-code. Before slicing, the file name shows the placeholder unfilled, the same way print_time does.

Nothing changes for templates that don't use it.
This commit is contained in:
foXaCe authored and GitHub committed 2026-10-29 15:53:19 -05:00
1 parent 5ea64864ef
commit f273fe8ac1
5 files changed
+60 -4

No files matched your search

+3 -3
View File
@@ -13433,9 +13433,9 @@ PrintStatisticsConfigDef::PrintStatisticsConfigDef()
def->label = L("Print time (normal mode)");
def->tooltip = L("Estimated print time when printed in normal mode (i.e. not in silent mode). Same as normal_print_time.");
//def = this->add("printing_filament_types", coString);
//def->label = L("Used filament types");
//def->tooltip = L("Comma-separated list of all filament types used during the print.");
def = this->add("printing_filament_types", coString);
def->label = L("Used filament types");
def->tooltip = L("Underscore-separated list of all filament types used during the print.");
def = this->add("silent_print_time", coString);
def->label = L("Print time (silent mode)");