Output filename format - Placeholders
The documentation for the list of placeholders states "Each configuration option can be used in all of your custom G-Codes and output filename template. The identifier of the respective placeholder is shown in a tooltip when you hover the config option in parameter tabs."
Yet, when I try to use the identifier « filament_spool_weight » in my output filename format, I get the following error message :
Failed processing of the output_filename_format template.
Parsing error at line 1: Referencing a vector variable when scalar is expected
{printing_filament_types} - {input_filename_base} ({round(total_weight)+1}g - {filament_spool_weight}g) - {print_time} - {nozzle_diameter[0]}n_{layer_height}mm.gcode
^
Is the documentation incorrect or am I doing something wrong?
RE: Output filename format - Placeholders
The error message makes it clear that filament_spool_weight is a vector variable but the slicer expects a scalar in that place. So all you have to do is replace filament_spool_weight with filament_spool_weight[0] or filament_spool_weight[initial_tool] and you're all set. Index [0] is the first extruder (which for a Core One etc is of course also the only one). Filament_spool_weight makes sense to be a vector because printers such as XL or INDX have multiple filament spools.
Formerly known on this forum as @fuchsr -- https://foxrun3d.com/