Repository navigation
Conversation
… the plate find_bambu_studio also reads the exe from the bambustudio:// link handler, so an install outside Program Files (D:\Bambu Studio) is opened directly instead of through the link, which made Bambu Studio ask whether to trust the download. write_3mf packs parts in rows centred on the 256 mm plate; before, they sat in one row centred on y = 0, half off the plate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LYYasrqRAofRzzudWC4dqe
…gle-instance) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LYYasrqRAofRzzudWC4dqe
… of loading it Tested on Windows with Bambu Studio: with --single-instance no new window opened, but the already-open window (single-instance preference off) did not load the parts either. Opening in a new window at least always loads them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LYYasrqRAofRzzudWC4dqe
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.
Found while sending the switch robot's printed parts to a running Bambu Studio on Windows (installed at
D:\Bambu Studio).find_bambu_studio()only looked at App Paths, the uninstall entries and Program Files, so the install wasn't found. 发到 Bambu Studio then fell back to thebambustudio://open?file=link, which opens a second Bambu Studio that asks whether to trust the download. It now also reads the exe from the link handler's registry command ("D:\Bambu Studio\bambu-studio.exe" "%1"), so the file is opened directly with no prompt.write_3mflaid the parts in one row centred on y = 0, so Bambu Studio's plate, which starts at its front-left corner, had half of every part off it and showed an "outside the plate" warning. Parts are now packed in rows centred on a 256 mm plate (A1 / P1 / X1).Not changed: Bambu Studio opens each file in a new window instead of the one already open. That is Bambu Studio's own behaviour when it is launched with a file.
Tests:
tests/test_printing.py(6 passed) checks that all five switch-robot parts sit inside 0–256 mm without overlapping, and checks the link-handler command parsing.Generated by Claude Code