Preparing a 3D print: from file to G-code, with the slicer settings in order

By Sina Esfahani, OmniTechs · Published 4 December 2026

Before your printer can make anything, your 3D file has to go through a slicer: a program that cuts the model into layers and turns them into G-code, the instructions the printer carries out line by line. What you set along the way decides whether the print works. This page lists the steps from file to G-code, each with the guide that covers it.

Always start from a ready-made profile for your printer and your filament, then change one setting at a time. That way every test print tells you what made the difference.

How to prepare a print, in this order:

  1. Make sure the file is right: the correct scale, a closed shape and no visible errors.

  2. Choose a slicer that suits your printer and add the printer with the right profile.

  3. Pick a filament profile that matches the brand and material on your spool.

  4. Set layer height, walls and infill for what the part has to do.

  5. Check temperature, speed and retraction, and add supports and adhesion where needed.

  6. Calibrate new filaments in a fixed order, not everything at once.

  7. Step through the preview layer by layer before you send the G-code to the printer.

Prusa's first-print guide follows the same line: choose the printer, choose the filament, choose a print profile, import and orient the model, supports, perimeters and infill, slice, check the preview and export.

Find, draw or capture a file

  • A ready-made model. Record the source, the creator and the exact licence, then check scale, units and mesh condition. Find free 3D models and check permission

  • Drawing it yourself. Start simple and move to a parametric program once you will revise a part. Best CAD software for 3D printing beginners

  • The whole design route. Measuring, design rules, fit and finishing have their own overview page. Design for 3D printing

  • Making the missing left or right part. You can mirror in CAD or in the slicer, but text, threads and holes or clips that sit differently on purpose must never be mirrored. Mirror a part for 3D printing

  • A picture or photo as a relief. A PNG or JPG becomes a height-map relief or an extruded outline; work out how many pixels go into a millimetre first. Image to STL

  • What can one photo carry? A tactile relief or a lithophane, yes; a complete model usually needs more views and dimensions. 3D-print a photo

  • Making a lithophane. With a free lithophane maker, the right thickness and an upright print at full infill. How to make a lithophane

  • A logo as a relief. Check the rights, closed outlines and the smallest details before you extrude an SVG. Turn an SVG into a 3D-printable logo

  • A terrain map. Work out how many layers your hills become at your scale and choose a vertical exaggeration. 3D print a terrain map

  • A photo scan with no true size. Put a known length in the picture, scale the model to it and check two other distances. Is your photo scan the right size?

  • Scanning a shiny, black or clear object. Scanners struggle with such surfaces; read first when you may spray and when you never should. Scan a shiny or transparent object

  • Tracing a flat plate. Scan it next to a ruler, check both scanner axes and test the outline and holes on a 1:1 paper print. Trace a cover plate with a flatbed scanner

Check, repair and convert the file

Choose a slicer and set up your printer and filament

  • Which slicer? Cura, PrusaSlicer, OrcaSlicer and Bambu Studio differ in printer profiles, built-in calibration, access to Bambu Lab printers and licence. Cura vs PrusaSlicer vs OrcaSlicer vs Bambu Studio

  • No Windows PC? No desktop slicer runs on an iPad; slice in your printer maker's app or in the browser, and use Flatpak on Linux or a Chromebook. Slice on an iPad, Chromebook or Linux

  • Adding your printer. Find the ready-made profile, or build one with the printable area, origin, height, nozzle and start code. Add your printer to your slicer

  • Filament from another brand. Pick or create your own filament profile and calibrate it once; for Bambu Lab's AMS the spool has to fit as well. Third-party filament in the AMS

  • The G-code before and after every print. Heating, probing, a purge that stays out of the print and a safe park go in a fixed order. Start G-code and end G-code

  • Commands you will edit yourself. What G28, G92, M104, M109 and M600 do, and the mistake each one invites. G-code commands explained

  • Dutch terms. The glossary sets 60 3D printing terms side by side in English and Dutch, such as retraction distance and Z hop. 3D printing glossary

The 3D Revolution video below walks the whole route in PrusaSlicer, one chapter per step: the configuration wizard with printer and filament, layers, infill, skirt and brim, support material, filament and cooling settings, printer settings and slicing. It dates from 2022, so some menus look different in newer versions.

PrusaSlicer Beginner Tutorial: Learn the basics (3D Revolution)

Layer height, walls and infill

  • Which layer height? Choose it for the feature you need to improve; sometimes orientation, nozzle or ironing do more than thinner layers. 3D printing layer height

  • Layer height and line width per nozzle. The ranges the makers publish for each nozzle size sit side by side. Nozzle size guide

  • Which infill pattern? No pattern is best for everything; choose by the part's job, and know when walls matter more than infill. Best infill pattern

  • Does it carry a load? Define the load first, then choose between more walls, infill, print orientation or another material. How strong are 3D-printed parts

  • Different settings in one spot. A modifier gives a screw hole more walls, for example, or one height band denser infill. Slicer modifiers

  • The seam of every layer. Put the z seam in a corner or at the back, and make it smaller on round parts. Hide the z seam

  • A rough top surface. Bumps and holes in the top layer close with enough solid layers, support from the infill, cooling and flow. Pillowing and ironing

Temperature, speed, cooling and retraction

Supports, adhesion and orientation

Calibrate in the right order

  • What comes first? Mechanics and your printer's own routines first, then per filament temperature, maximum flow, pressure advance, flow and retraction. 3D printer calibration order

  • Flow per filament. Print test blocks around your current flow ratio and keep the smoothest top surface. Flow rate calibration

  • Bulging corners and blobby line ends. That is pressure lag in the nozzle; tune pressure advance or linear advance with one test print. Pressure advance and linear advance

  • Parts or holes the wrong size. Measure a test part, tell shrinkage, flow and skew apart, and set each correction separately. Fix dimensional accuracy

  • What a test print tells you. Read a 3DBenchy feature by feature and go to the guide for the fault you find. 3D printer test prints

Multiple colours, text, pauses and several copies

  • Printing in several colours. Assign colours per part, paint them on the model or set them by height, and map them to the right slot. Multicolour printing in the slicer

  • Less purge waste. Waste follows the number of filament changes, so cut changes first and then flush into infill or a spare part. Reduce purge waste

  • One printer, a second colour anyway. A pause on the right layer gives you time to change colour or drop in a nut or magnet. Pause at height

  • Text on your model. Raised, engraved or flush in colour, with your slicer's text tool. Add text in the slicer

  • Several copies. Fill the plate or print them one by one: when each is faster and how to stop one failed part ruining the rest. Print multiple parts at once or one by one

  • Only the section that has to fit, first. Cut a strip out of the model or sink it into the plate in the slicer. Print part of a model

  • Too big for the bed. Plan the cuts, seams, alignment and assembly order before you print. Split a large 3D model

  • How long will it take? The slicer works out time and filament; slicer figures for 961 real products show what is normal. How long does a 3D print take

Next step

If you would rather have the part than tune the settings, upload your STL or 3MF to the 3D printing service: you see a price estimate straight away, and OmniTechs prints in PLA and PETG from a single piece.

Published articles

Files and slicer settings

58 articles

  1. Design and check your first 3D spacer

    Define outside diameter, hole and height. Inspect a saved spacer mesh, including its polygon opening, before planning a physical fit trial.

  2. Find the right nozzle temperature with a temperature tower

    How to choose a nozzle temperature: start from the maker's range, print a temperature tower in OrcaSlicer, Bambu Studio, PrusaSlicer or Cura, read what too hot and too cold look like, and choose for looks or strength.

  3. Best infill pattern? Choose by what the part has to do

    No pattern wins everywhere. What each infill pattern is for, the densities slicers ship, measured material and time per pattern from OrcaSlicer's analysis, and why walls matter more than infill for strength.