From 5678c64f1899375e2d9409dc01778404f586bcb9 Mon Sep 17 00:00:00 2001 From: GregValiant <64202104+GregValiant@users.noreply.github.com> Date: Sun, 12 Jan 2025 10:04:39 -0500 Subject: [PATCH] Update SearchAndReplace.py Change variable name from cura_app to global_stack. --- plugins/PostProcessingPlugin/scripts/SearchAndReplace.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/PostProcessingPlugin/scripts/SearchAndReplace.py b/plugins/PostProcessingPlugin/scripts/SearchAndReplace.py index 5f440a67e9..4d81b9f98d 100644 --- a/plugins/PostProcessingPlugin/scripts/SearchAndReplace.py +++ b/plugins/PostProcessingPlugin/scripts/SearchAndReplace.py @@ -96,8 +96,8 @@ class SearchAndReplace(Script): }""" def execute(self, data): - cura_app = Application.getInstance().getGlobalContainerStack() - extruder = cura_app.extruderList + global_stack = Application.getInstance().getGlobalContainerStack() + extruder = global_stack.extruderList retract_enabled = bool(extruder[0].getProperty("retraction_enable", "value")) # If retractions are enabled then the CuraEngine inserts a single data item for the retraction at the end of the last layer # 'top_layer' accounts for that @@ -140,6 +140,7 @@ class SearchAndReplace(Script): raft_layers = 0 except: pass + #Determine the actual start and end indexes of the data try: if not enable_layer_search: