Repository navigation
Write Bambu Studio's setting values in Bambu 3mf exports - #71
Merged
hvoss-tech merged 1 commit intoNov 20, 2026
Merged
Conversation
Bambu Studio names some values differently from OrcaSlicer and swaps a name it doesn't know for its default. The 100 % "rectilinear" infill became "cubic", which it refuses at that density, so it dropped the project's settings and opened the stock 0.2 mm profile instead of the AutoForge layer height. For Bambu printers, write Bambu's names: "zig-zag" for rectilinear patterns, 0/1 for arc fitting and vertical shell thickness. OrcaSlicer converts these back on load, so the project still opens there. Checked with the Bambu Studio 2.9.1.70 CLI on every Bambu 0.4 nozzle printer: all slice, no value substitutions, 0.04 mm layers in the G-code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
|
Thank you very much for the PR :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #72
Problem
Bambu Studio refused 3mf projects exported for Bambu Lab printers ("Invalid parameter value(s) included in the 3mf file.").
The export writes some settings with OrcaSlicer's value names. Bambu Studio names these values differently and replaces a value it doesn't know with its default:
Cubic infill at the export's 100 % density is invalid in Bambu Studio, so it refused the project.
Fix
New
make_bambu_compatible()inExport3MF.py, run for Bambu (BBL) printers only. It writes Bambu's value names:rectilinearbecomeszig-zagfor the infill, surface and ironing patternsdisabled/enabledbecomes0/10/1(Bambu has no "off" level;0is "partial", which has no effect with every layer solid)OrcaSlicer converts each of these back on load (
handle_legacy). These are value-only conversions, so Orca doesn't add the keys todifferent_settings_to_systemand doesn't reset the project to the system preset.Testing
tests/test_slicer_project.py; the slicer test files pass (100 tests).layer_height(0.04).PrintConfig.cppat v02.09.01.70) for all Bambu printers and nozzles.M400 U1) lands on the swap layer.🤖 Generated with Claude Code