3MF G-code PreviewPreview 3MF models and sliced G-code in VS Code. Explore the full toolpath, inspect individual layers, and follow the print sequence. The viewer is read-only and never changes the original file.
A sliced 20 mm cup with 200 layers. The preview shows the complete print, path types, layer range, and slicer time estimates in one view. Explore a printFocus on the layers you needDrag the two handles or enter layer numbers to show a range. Switch to Single layer when you want to inspect one slice, and use Top view to see its path layout.
See individual pathsSwitch between filament-style paths and center lines. Color paths by type, speed, or tool; use the legend to hide categories and show travel moves separately. Only path types, speed bands, and action markers present in the selected plate appear in their lists. The path-order slider and play button reveal how the selected layers are printed. Display choices are shared across files and restored when you reopen the preview. Layer selection and playback position stay with the current preview. The 3D grid uses 10 mm squares.
Another model shows how the two path displays handle a dense, detailed region:
Filament view shows the approximate width of each deposited path.
The same area in Line view reveals the individual path routes. Check what is in the fileFor 3MF files, open Structure to browse the project, plates, objects, and parts. Select an item to view its available settings, and use the search field to find a parameter or value. The information shown depends on what the file contains. The viewer also shows available print-time estimates and optional action markers. Click the marker or toolpath heading to expand or collapse its list.
Install and openIn VS Code, open the Extensions view, search for You can also run 3MF G-code Preview: Open 3MF or G-code from the Command Palette. For a toolpath preview, the 3MF must contain sliced G-code. In Bambu Studio, Export plate sliced file creates this kind of file. A 3MF project without G-code can show its model geometry, but this extension cannot slice it. You can also open text The interface follows the VS Code display language: Japanese for Japanese locales and English otherwise. Names stored in the 3MF stay as written in the file. What to expectThe viewer draws a preview from the file's model and G-code. Filament-style paths approximate deposited material; they are not a measurement of the finished print. Print times come from the slicer's estimates. Action markers are derived from G-code and may differ from printer behavior. The viewer does not determine seam positions or simulate firmware-specific commands. Large or unsupported files may show an error. The extension does not send a job to a printer or start a print. SupportReport bugs or request features through the GitHub issue tracker. See Support for what to include in a report. This is an unofficial project and is not affiliated with or endorsed by Bambu Lab. Licensed under the MIT License. |