Notifications
Clear all

Slic3r Gcode output filename format  

  RSS
maurice.h
(@maurice-h)
New Member
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

Posted : 15/04/2018 11:04 am
gerhard.w
(@gerhard-w)
New Member
Re: Slic3r Gcode output filename format

You can use [timestamp], or[hour], [minute], [second].

Posted : 18/06/2018 5:36 pm
Tiago
(@tiago)
Reputable Member
Re: Slic3r Gcode output filename format

Additional you can put the filament type too: [input_filename_base]_[filament_type][layer_height]mm.gcode

Posted : 18/06/2018 8:43 pm
Vojtěch Bubník
(@vojtech-bubnik)
Admin
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.

Posted : 19/06/2018 9:17 am
termlimit
(@termlimit)
Trusted Member
Re: Slic3r Gcode output filename format

Just checking in to see if there is an update to this thread from the dev team? Thanks!

Posted : 19/10/2018 2:34 am
bobstro
(@bobstro)
Illustrious Member
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.

My notes and disclaimers on 3D printing

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

Posted : 19/10/2018 4:11 am
termlimit
(@termlimit)
Trusted Member
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!

Posted : 23/10/2018 3:48 pm
danilo.m2
(@danilo-m2)
New Member
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.

Posted : 15/12/2018 4:50 pm
bobstro
(@bobstro)
Illustrious Member
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.

My notes and disclaimers on 3D printing

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

Posted : 15/12/2018 7:16 pm
pasaff68
(@pasaff68)
New Member
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?

Posted : 22/12/2018 2:14 pm
Vojtěch Bubník
(@vojtech-bubnik)
Admin
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

Posted : 24/12/2018 2:22 pm
bobstro
(@bobstro)
Illustrious Member
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.

My notes and disclaimers on 3D printing

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

Posted : 24/12/2018 4:54 pm
bobstro
(@bobstro)
Illustrious Member
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.

My notes and disclaimers on 3D printing

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

Posted : 24/12/2018 5:06 pm
jurassic73
(@jurassic73)
Estimable Member
RE: Slic3r Gcode output filename format

Is there an option to put the scale into the file name?

MK3s / My IKEA Lack enclosure

Posted : 10/10/2019 5:01 pm
bobstro
(@bobstro)
Illustrious Member
RE: Slic3r Gcode output filename format
Posted by: @hans-l4

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.

My notes and disclaimers on 3D printing

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

Posted : 10/10/2019 5:05 pm
Share: