<p>The filename is under the "Print settings" tab. Under output options, you can change the name template. You can use words like: [layer_height] to make the name dynamic.</p>

<p>The variable you are looking for here is: [filament_preset]
But the full name, with space and everything, is used.</p>

<p>Here is a screenshot:
<a href="https://i.sstatic.net/JWVts.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/JWVts.png" alt="output options"></a></p>

<p>Here is a link to fuller docs:
<a href="https://github.com/slic3r/Slic3r/wiki/FAQ#how-can-i-specify-a-custom-filename-format-for-output-g-code-files" rel="nofollow noreferrer">https://github.com/slic3r/Slic3r/wiki/FAQ#how-can-i-specify-a-custom-filename-format-for-output-g-code-files</a></p>

<h1>New version of Slic3r</h1>

<p>It lets you edit the filename when upload it. You will see what will be upload it and give it any name. But this is a manual process. Just updated my answer for the sake of completeness.</p>

CC BY-SA 4.0
2018-07-01T16:37:31.170Z
Very useful answer.   The reference to the slic3r doc is helpful,  and explains a lot about variable substitutions.   I need to find the canonical list of variables,  just for reference.   Thank you.
cmm
CC BY-SA 4.0
2018-07-01T09:11:39.617Z
2018-07-15T14:13:17.767Z
2018-07-15T14:13:17.767Z
Gunslinger
<p>When generating STL files with slic3r I would like to automatically prefix the filename with strings such as PLA or PET before uploading to my printer.  How can I specify this in the filament settings?</p>

<slicing><slic3r>
Slic3r: How can I automatically modify the STL filename?
Mark Harrison
# Slic3r: How can I automatically modify the STL filename?

(Asked by: username_0 on 2018-07-01)

When generating STL files with slic3r I would like to automatically prefix the filename with strings such as PLA or PET before uploading to my printer. How can I specify this in the filament settings?

**Tags:** slicing, slic3r

---

## 1 answers

### Answer by username_1 on 2018-07-01. Score: 8 | Accepted answer

The filename is under the "Print settings" tab. Under output options, you can change the name template. You can use words like: [layer\_height] to make the name dynamic.

The variable you are looking for here is: [filament\_preset]
But the full name, with space and everything, is used.

Here is a screenshot:
[![output options](https://i.sstatic.net/JWVts.png)](https://i.sstatic.net/JWVts.png)

Here is a link to fuller docs:
<https://github.com/slic3r/Slic3r/wiki/FAQ#how-can-i-specify-a-custom-filename-format-for-output-g-code-files>

# New version of Slic3r

It lets you edit the filename when upload it. You will see what will be upload it and give it any name. But this is a manual process. Just updated my answer for the sake of completeness.

> **Comments:**
> **username_2**: Very useful answer.   The reference to the slic3r doc is helpful,  and explains a lot about variable substitutions.   I need to find the canonical list of variables,  just for reference.   Thank you.  

---

