AA

Featured products

    Popular categories

      Trending searches

        Articles

          Blog

            Products

              Categories

                Suggested searches

                  Searching…
                  No results
                  Something went wrong.
                  ↑↓ Select↵ OpenEsc Close search
                  • English
                  • Čeština
                  • Deutsch
                  • Español
                  • Français
                  • Italiano
                  • Polski
                  • 日本語
                  • Orders
                  • Address
                  • In-stock Alerts
                  • My Courses
                  • Subscription
                  • Edit Account
                  • 3D printers9+▾

                    3D printersnew

                    newPrusa CORE One L+Learn more
                    newPrusa CORE One+ (Gen 2)Learn more
                    newPrusa CORE One L+ INDX 8-ToolnewPrusa CORE One+ (Gen 2) INDX 8-ToolPrusa CORE One L+: Critical InfrastructureOriginal Prusa MK4SnewOriginal Prusa XL+Original Prusa XL+: Critical Infrastructure

                    Printer upgrades

                    newINDX Conversion KitsnewPrusa CORE One L to CORE One L+ upgradenewPrusa CORE One+ to Prusa CORE One+ (Gen 2)newPrusa XL to Prusa XL+ Upgrade
                    Prusa Reward ProgramLove your Prusa printer? Share your experience and earn $30 Prusa e-shop vouchers.
                    How to Choose a 3D Printer?We’ll walk you through the basics to find the exact machine for your space, budget, and ideas.
                    Free E-bookDownload a free e-book Basics of 3D Printing with Josef Prusa and make your first steps in 3D printing world
                    Original Prusa Printable PartsCollections of printable spare parts for Original Prusa 3D printers and upgrades.
                    Shipping informationRegularly updated info about the current manufacturing capacity and delivery times of our printers.
                    Custom 3D PrintingProfessional custom 3D printing from various materials according to your requirements.
                  • Materials▾

                    Filaments

                    PrusamentPLAPETGASA / ABSPC (Polycarbonate)PA (Nylon)FlexCompositesSpecialMaterials clearance sale

                    Resin

                    Prusament ResinResin Cleaner
                    Filament GuideCheck my Prusament Spool
                    Prusament.com
                  • Parts & Accessories▾

                    Accessories

                    EnclosuresNozzlesPrint SheetsEssential AccessoriesCameras & AddonsTools & CraftingAdhesives

                    Spare parts

                    Merchandise

                    Spare parts - All PrintersCORE OneMK4/S & MK3.9/SMK3/S/+XL
                    Merch
                  • For Business▾
                    Prusa Pro HT90Prusa Pro SLXPrusa Pro AFSPrusa Pro Medical OneOriginal Prusa XLOriginal Prusa XL: Critical Infrastructure
                    Prusa CORE One+Learn more
                    Prusa CORE One LLearn more
                    Prusa CORE One L: Critical Infrastructure Edition

                    3D Printing for

                    Manufacturing and R&DAutomotive IndustryHealthcareEducation and Academic ResearchArchitects and DesignersFilm IndustryCritical Infrastructure

                    3D Printing Stories

                    • How 3D printing started: About Rep-rap and open-source with Adrian Bowyer
                    • Teaching mathematics redefined with 3D printing at JKU Linz
                    • The story behind the LTT screwdriver
                    • Victoria Hand Project: Changing Prosthetic Care with 3D Printing
                    Official Prusa Resellers
                    Sustainability
                    Prusa Education
                    Contact and Inquiry
                    Custom 3D Printing
                    ISO Certified
                  • Software▾
                    PrusaSlicer

                    PrusaSlicerPrusaSlicer

                    PrusaSlicer is an open-source, feature-rich, frequently updated tool that contains everything you need to export the perfect print files for your 3D printer.

                    WindowsMacOSLinux
                    Prusa Connect

                    Prusa Connect

                    Prusa Connect is a cloud service enabling remote control and monitoring of your 3D printers, offering secure data handling, easy setup, and support for managing multiple printers from anywhere.

                    Log in to Connect
                    Prusa.app

                    Prusa.app

                    Control your printer/s remotely from anywhere using the Prusa Connect technology behind. Prusa.app brings a new level of Prusa printer experience to Android and iOS phones.

                    Try it now!
                    Drivers & FirmwareDownload the latest firmware and drivers for your 3D printer.
                    PrusaSlicer Support
                    Prusa Connect Support
                  • 3D Models▾
                    3D PrintersArt & DesignHobby & MakersHouseholdTabletop MiniaturesToys & GamesPrintables Store

                    Popular 3D models

                    • Strong garden hose holder
                    • Prusa Spool Bot
                    • Build Tray — Modular Organizer for Assembly, Disassembly and Maintenance
                    • Broom Holder
                    • Octagon Fabric
                    • Prusa CORE One ? (Mimic Skin)

                    Design Contests

                    • Framework Laptop 12 Mainboard Wiederverwendung9/1/2026 – 9/30/2026
                    • 🏆 Designer Herausforderung: Zaubertricks!9/1/2026 – 9/22/2026
                    • Make-up Aufbewahrungslösungen9/4/2026 – 9/20/2026
                  • Community▾

                    Upcoming Events

                    • IFA 20269/4/2026 – 9/8/2026 · Berlin, Germany · Prusa Team
                    • Maker Faire Bay Area9/25/2026 – 9/27/2026 · Kalifornie, United States · Prusa Team
                    • 3D Printopia 20269/26/2026 – 9/27/2026 · Pennsylvania, United States · Prusa Team
                    • Hobby Messe10/2/2026 – 10/4/2026 · Sachsen, Germany · Prusa Team

                    Prusa Forum

                    • sometimes tools don't stay in dock
                    • Beginner problems with filament tearing off during print ("under-extrusion"?) and clogged nozzle
                    • PrusaSlicer is not respecting the temperature I set
                    Prusa World MapPrusa World MapFind local 3D printing users and explore the community around you.
                  • Help▾
                    Guides & TutorialsPrusaSlicerPrusa ConnectMaterials

                    Printer Model

                    CORE One INDXCORE One LCORE One+CORE One

                    Hardware Troubleshooting

                    • Selftest failed (CORE One/+)
                    • Clogged nozzle (CORE One, CORE One L, XL, MK4/S, MK3.9/S)
                    • Adjusting belt tension (CORE One/+, CORE One INDX, CORE One L/+)
                    • Prusa Connect and PrusaLink explained

                    Drivers & Firmware

                    INDX familyCORE One familyMK4 familyXL familyMMU familyPRO family
                  • Courses▾

                    Become an expert in 3D printing

                    Prusa Academy offers online courses on various 3D printing related topics. Each course features:

                    • easy-to-read text with many pictures and short videos
                    • links for inspiration and further study
                    • quizzes for testing your knowledge along the way
                    • certificate of completion
                    Browse all coursesMy courses library
                    • 3D Modeling in Autodesk Fusion
                    • PrusaSlicer Masterclass – Beginner to Advanced
                    • Complete Guide to 3D Print Postprocessing, Painting, and Detailing
                    • Airbrush Your 3D Prints: From Basics to Advanced Tricks
                  • Blog▾
                    • Back-to-School 2026 Deals Are Here!
                    • PrusaSlicer 3.0 Preview – Built for the Future of 3D Printing
                    • Prusa CORE One+ (Gen 2) INDX, Shipping Has Started, Complete Printers Open for Orders
                    E-Book: Basics of 3D Printing
                  • Company▾

                    About Prusa Research

                    We are the largest maker of 3D printers in Europe and the United States.

                    Founded as a one-man startup in 2012 by Josef Prusa, a Czech hobbyist, maker, and inventor. In just 15 years, we've grown into a company of more than 1,200 people. Every month, we design, build, and ship over 10,000 innovative and secure 3D printers from our headquarters in Prague, Czech Republic, and Delaware, USA, to users in more than 160 countries.

                    Watch a video and find out how Prusa Research was born and what we achieved within only 10 years!

                    About UsTimelineSustainabilityOpen-source
                    About Us
                    Contact Us
                    Logo and Photos
                    ISO Certified
                  1. Support
                  2. Other (PrusaSlicer)
                  3. List of placeholders
                   

                  Contents

                  • Placeholders for configuration options
                  • Placeholders available in all custom G-Codes
                  • Custom G-Code specific placeholders
                  • Output filename format FDM
                  • Output filename format SLA

                  Blog

                  • Back-to-School 2026 Deals Are Here!
                  • PrusaSlicer 3.0 Preview – Built for the Future of 3D Printing
                  • Prusa CORE One+ (Gen 2) INDX, Shipping Has Started, Complete Printers Open for Orders

                  Newsletter

                  Signup and get our monthly squeeze on updates, blog, printables and much more.

                  By clicking, you agree to receive our newsletter.

                  This site is protected by reCAPTCHA Enterprise and the Google Privacy Policy and Terms of Service apply.

                  Strong garden hose holder
                  E-shop
                  • 3D Printers
                  • Printer Upgrades
                  • Filaments
                  • Accessories
                  • Prusa Merchandise

                  © Prusa Research a.s.

                  Printables
                  • 3D Models
                  • Store
                  • Clubs
                  • 3D Design Contests
                  • Brands
                  Community
                  • World Map
                  • Forum
                  • User Groups
                  • Events
                  Help
                  • Prusa Help
                  • Prusa Academy
                  • 3D Printing Calculators
                  Software
                  • PrusaSlicer
                  • Prusa.app
                  • Prusa Connect
                  • Drivers and Software
                  Company
                  • About Us
                  • Blog
                  • Official Prusa Resellers
                  • Contact Us
                  • Certified for ISO 9001, ISO 14001, ISO 45001
                  • General Terms and Conditions
                  • General Terms and Conditions of Use of the PRUSA Websites
                  • Privacy Policy
                  • Information about cookies
                  • Customer Complaints Policy
                  • Status Page
                  • Do Not Sell or Share My Personal Information
                  • Supplemental Statements
                  • General Terms and Conditions
                  • General Terms and Conditions of Use of the PRUSA Websites
                  • Privacy Policy
                  • Information about cookies
                  • Customer Complaints Policy
                  • Status Page
                  • Do Not Sell or Share My Personal Information
                  • Supplemental Statements

                  © Prusa Research a.s.

                  JOSEF PRUSA®, PRUSA RESEARCH®, PRUSA POLYMERS®, PRUSA ORANGE®, PRUSA 3D ® AND PRUSAMENT® are registered trademarks of Prusa Development a.s. used by Prusa Research a.s. under licence from Prusa Development a.s.

                  List of placeholders

                  Relevant for

                  MK3S+
                  PrusaSlicer
                  39 comments
                  Article is also available in following languages
                  English
                  Čeština
                  Polski
                  Deutsch
                  Français
                  Español
                  Italiano
                  日本語

                  This is a list of variables available in custom G-Code macro language in PrusaSlicer. The macro language is described in detail in a separate page.

                  Placeholders for configuration options

                  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:

                  That is, using {layer_height} in a custom G-Code would expand into 0.15.

                  Placeholders available in all custom G-Codes

                  There are additional placeholders available in all custom G-Codes:

                  current_extruder
                  current_object_idx
                  day
                  filament_preset
                  first_layer_print_convex_hull
                  first_layer_print_max
                  first_layer_print_min
                  first_layer_print_size
                  has_single_extruder_multi_material_priming
                  has_wipe_tower
                  hour
                  initial_extruder
                  initial_tool
                  input_filename_base
                  is_extruder_used
                  minute
                  month
                  num_extruders
                  num_instances
                  num_objects
                  physical_printer_preset
                  print_bed_max
                  print_bed_min
                  print_bed_size
                  print_preset
                  printer_preset
                  scale
                  second
                  timestamp
                  total_layer_count
                  total_toolchanges
                  year

                   

                  Custom G-Code specific placeholders

                  There are extra placeholders only available in certain custom G-Codes. See the table below for an overview.

                   ToolchangeBefore layerAfter LayerFilament StartFilament EndEnd
                  next_extruder✓✗✗✗✗✗
                  previous_extruder✓✗✗✗✗✗
                  toolchange_z✓✗✗✗✗✗
                  max_layer_z✓✓✓✓✓✓
                  layer_num✓✓✓✓✓✓
                  layer_z✓✓✓✓✓✓
                  filament_extruder_id✗✗✗✓✓✗

                   

                   

                  Output filename format FDM

                  The macro language can be used in Output filename format field available in Print Settings -> Output options. In this context you can use all the configuration placeholders plus the following:

                  day
                  extruded_volume
                  filament_preset
                  hour
                  initial_extruder
                  initial_filament_type
                  initial_tool
                  input_filename_base
                  minute
                  month
                  normal_print_time
                  num_extruders
                  num_instances
                  num_objects
                  num_printing_extruders
                  physical_printer_preset
                  print_preset
                  print_time
                  printer_preset
                  printing_filament_types
                  scale
                  second
                  silent_print_time
                  timestamp
                  total_cost
                  total_toolchanges
                  total_weight
                  total_wipe_tower_cost
                  total_wipe_tower_filament
                  used_filament
                  version
                  year

                   

                  Output filename format SLA

                  You can use all configuration options placeholders plus the following:

                  day
                  hour
                  input_filename_base
                  minute
                  month
                  num_instances
                  num_objects
                  objects_used_material
                  print_time
                  scale
                  second
                  support_used_material
                  timestamp
                  total_cost
                  total_weight
                  version
                  year

                  Was this article helpful?
                  This action is available only to registered users. Please log-in.

                  Topics

                  • PrusaSlicer 2.9 (Legacy)
                    • Other (PrusaSlicer)
                      • 3Dconnexion devices
                      • Sending files to Octoprint/Duet
                      • Macros
                      • Export toolpaths as OBJ
                      • PrusaSlicer G-code viewer
                      • List of placeholders
                      • How to lift object from the print bed
                      • Opening models in PrusaSlicer from supported websites
                    • About PrusaSlicer
                    • Configuration and profiles
                    • User interface
                    • Input/output
                    • Left toolbar
                    • Top toolbar
                    • Print settings
                    • Filament settings
                    • Printer settings
                    • Advanced features
                    • Multi-material slicing
                    • SLA slicing

                  24 comments

                  Log in  to post a comment
                  Francois Leclerc
                  •
                  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 « filament_spool_weight » identifier 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
                  ^
                  Reply
                  Anton Lunenko
                  •
                  {digits(total_weight, 1, 2)}g

                  2 - digits after comma
                  Reply
                  Søren Panduro
                  •
                  Why is "total_weight" not available for G-Code file names?
                  Reply
                  Francois Leclerc
                  •
                  It works for me. I have this Output filename format :
                  {printing_filament_types} - {input_filename_base} ({round(total_weight)+1}g) - {print_time} - {nozzle_diameter[0]}n_{layer_height}mm.gcode
                  Reply
                  Anton Lunenko
                  •
                  {digits(total_weight, 1, 2)}g

                  2 - digits after comma
                  Reply
                  justbennett
                  •
                  So "first_layer_temperature" isn't on this list? That's confusing. Because it's definitely a placeholder Right?
                  Reply
                  Francois Leclerc
                  •
                  Can we request a new configuration placeholder? I would like to know the printing time of the first layer. It's listed after the slice is created but I don't know what is the placeholder to use for it to be part of the filename.
                  It would be Extremely nice to be able to set a default file output format. I have multiple printer settings according to the type of printing I want to do and any change to the output format needs to be replicated by hand in every printer profiles. Having that functionality for the printer profiles by nozzle sizes would be a great addition.
                  I second the request to have control over where the Bed number is located.
                  Reply
                  Justin
                  •
                  What about Bed number? cause currently it automatically sticks that on the end of the file name and I want it on the front.
                  Reply
                  CW
                  •
                  Same, I also want it on the front.
                  Reply
                  bosr
                  •
                  Same here, it makes file listing much easier.
                  Thanks in advance
                  Reply
                  Gregor_PRIV
                  •
                  Ditto - before printer's tiny display scrolls the filename all the way till the bed number I feel I'm getting older.
                  Actually, custom naming of the beds would also be insanely useful. ;)
                  Reply
                  smoere
                  •
                  +1 from me. for now i start filename with timestamp as a workaround, getting plate number/bed number as variable would be nicer
                  Reply