From 868e74e84b5ef87b9e4ac6b44d0eaa9cb841146d Mon Sep 17 00:00:00 2001 From: Shirley Du Date: Tue, 28 Jan 2025 17:14:34 -0500 Subject: [PATCH] For Method, enable corner rounding/input shaping if using highspeed type intents --- plugins/MakerbotWriter/MakerbotWriter.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/MakerbotWriter/MakerbotWriter.py b/plugins/MakerbotWriter/MakerbotWriter.py index b50adf450c..2f77ffeda7 100644 --- a/plugins/MakerbotWriter/MakerbotWriter.py +++ b/plugins/MakerbotWriter/MakerbotWriter.py @@ -249,13 +249,17 @@ class MakerbotWriter(MeshWriter): meta["preferences"] = dict() bounds = application.getBuildVolume().getBoundingBox() + intent = CuraApplication.getInstance().getIntentManager().currentIntentCategory meta["preferences"]["instance0"] = { "machineBounds": [bounds.right, bounds.front, bounds.left, bounds.back] if bounds is not None else None, - "printMode": CuraApplication.getInstance().getIntentManager().currentIntentCategory, + "printMode": intent } if file_format == "application/x-makerbot": accel_overrides = meta["accel_overrides"] = {} + if intent in ['highspeed', 'highspeedsolid']: + accel_overrides['do_input_shaping'] = True + accel_overrides['do_corner_rounding'] = True bead_mode_overrides = accel_overrides["bead_mode"] = {} accel_enabled = global_stack.getProperty('acceleration_enabled', 'value')