Slic3r Gcode output filename format
Hello,
I want to change the filename output in Slic3r to ,,Filename_layerHeight_printTime.gcode'' .
This is what I have but ,,[print_time]'' isn't a variable : [input_filename_base]_[layer_height]mm_[print_time].gcode .
Is there a variable for print time ?
Greetings
Maurice
Re: Slic3r Gcode output filename format
You can use [timestamp], or[hour], [minute], [second].
Re: Slic3r Gcode output filename format
Additional you can put the filament type too: [input_filename_base]_[filament_type][layer_height]mm.gcode
Re: Slic3r Gcode output filename format
The print time is not known at the time the file name is created yet, so you cannot enter the print time into the file name as of now. We are working to enable it though.
Re: Slic3r Gcode output filename format
Just checking in to see if there is an update to this thread from the dev team? Thanks!
Re: Slic3r Gcode output filename format
I've written a (clunky) python post-processing script to append the estimated print time to the output gcode filename. It actually copies the file generated by Slic3r and copies it to a new file with the appropriate renaming done. It requires python be running on your system, and I have no means (or inclination) to try this on Windows, but if you get python working, it should work well.
and miscellaneous other tech projects
He is intelligent, but not experienced. His pattern indicates two dimensional thinking. -- Spock in Star Trek: The Wrath of Khan
Re: Slic3r Gcode output filename format
I've written a (clunky) python post-processing script to append the estimated print time to the output gcode filename. It actually copies the file generated by Slic3r and copies it to a new file with the appropriate renaming done. It requires python be running on your system, and I have no means (or inclination) to try this on Windows, but if you get python working, it should work well.
Thanks!
Re: Slic3r Gcode output filename format
Is there a list of what are the attributes, that can be put in?
i would like to see the estimated usage of filament lenhtg in meters.
Re: Slic3r Gcode output filename format
Is there a list of what are the attributes, that can be put in?
i would like to see the estimated usage of filament lenhtg in meters.
There are no placeholder for those values. However, the values are inserted into the gcode after generation. If you look at the large block of comments at the end of a print (lines preceded with semicolons), you'll see something like:
; filament used = 19327.9mm (43.9cm3)
; filament used = 55.7
; filament cost = 1.1
; total filament cost = 1.1
; estimated printing time (normal mode) = 1h 54m 34s
; estimated printing time (silent mode) = 1h 54m 56s
You can parse these with a post-processing script. I've created a python script to extract the print times and insert them in the filename for example. I haven't written up a guide for doing this yet. You'll need to get python running on your OS.
and miscellaneous other tech projects
He is intelligent, but not experienced. His pattern indicates two dimensional thinking. -- Spock in Star Trek: The Wrath of Khan
Re: Slic3r Gcode output filename format
@bobstro: thanks for the info on this topic. is it possible that you share the Python code you use to parse and get the print time in the file name?
Re: Slic3r Gcode output filename format
The time estimate in the output file template is supported by the 1.42.0-alpha1
https://github.com/prusa3d/Slic3r/releases/tag/version_1.42.0-alpha1
Re: Slic3r Gcode output filename format
@bobstro: thanks for the info on this topic. is it possible that you share the Python code you use to parse and get the print time in the file name?
Sure. I'll try to put it up soon. It does sound like an upcoming Slic3rPE release will incorporate the feature though.
and miscellaneous other tech projects
He is intelligent, but not experienced. His pattern indicates two dimensional thinking. -- Spock in Star Trek: The Wrath of Khan
Re: Slic3r Gcode output filename format
The time estimate in the output file template is supported by the 1.42.0-alpha1
https://github.com/prusa3d/Slic3r/releases/tag/version_1.42.0-alpha1
The release looks amazing! Looking forward to it.
and miscellaneous other tech projects
He is intelligent, but not experienced. His pattern indicates two dimensional thinking. -- Spock in Star Trek: The Wrath of Khan
RE: Slic3r Gcode output filename format
Is there an option to put the scale into the file name?
MK3s / My IKEA Lack enclosure
RE: Slic3r Gcode output filename format
Is there an option to put the scale into the file name?
I do not believe so. You can reference just about any setting, but per-part over-rides are not present in the generated gcode so there aren't "placeholder" variables to reference.
and miscellaneous other tech projects
He is intelligent, but not experienced. His pattern indicates two dimensional thinking. -- Spock in Star Trek: The Wrath of Khan