Object name as placeholder variable
Is your feature request related to a problem? Please describe. I sometimes have a project which requires different parts, say 3 input .stl files. I want to use the exact same profiles for all the parts and prepare 3 separate gcode files to print the 3 parts individually. To do this easily and to make sure I use the same profiles consistently for all the parts, I use a single project and add all 3 .stls to it. Then, for each part one by one I:
- set it as printable (the eye icon next to the STL file name)
- set all other parts as not printable
- press the arange button so that the part I want is centered on the build plate and the others are pushed outside, so will not be sliced
- slice and save the gcode
- rinse and repeat for the other parts
My issue is that I cannot easily set the name for each .gcode file to contain the name of the object (= name of .stl input file). All gcode files are named by default the same as the project name (the .3mf file). So I have to manually type in the name of each of the objects whenever I'm exporting a gcode file so that I will know later what each .gcode file contains.
There is the Output filename format setting which I expect would allow me to set a variable like {object_name} to be part of the file name, but such a variable doesn't exist as far as I can tell. I believe List of Placeholders is the most reliable list of such variables, but no variable fits what I am looking for.
Describe the solution you'd like Add a variable {object_name} or {printable_object_name} which would be available to be used in the Output filename format setting.
Describe how it would work
That variable should be an array containing the names of the visible/printable objects (really, the names of the .stl files) arranged in the same order as they appear in the interface. Having it as an array would be useful when i.e. you want to print 2 of the 3 objects on the same platter.
Either the input file extension would need to be omitted (so variable returns object instead of object.stl), or there could be 2 variables like we currently have input_filename & input_filename_base.
Describe alternatives you've considered I am not sure if the way I am using prusaslicer is the way it is intended. I would imagine having one separate project per object I want to print (or more broadly one project per platter) would solve my problem, but then I have to make sure that if I change a setting in my profiles, that I update all those project files to match. It's an extra step which adds a higher chance for human error.
Also in my head I have one "project" which requires 3 parts to work together. It would make sense from a UX point of view that I would have them all grouped into a single project file.
Source: prusa3d/PrusaSlicer