From 398556707f4d75e9a1bbe45866239057b0561960 Mon Sep 17 00:00:00 2001 From: GregValiant <64202104+GregValiant@users.noreply.github.com> Date: Fri, 23 Jun 2023 13:36:27 -0400 Subject: [PATCH] Update PostProcessingPlugin.py Add all the active Post Processor names to the gcode. --- plugins/PostProcessingPlugin/PostProcessingPlugin.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/PostProcessingPlugin/PostProcessingPlugin.py b/plugins/PostProcessingPlugin/PostProcessingPlugin.py index fbb42140213..c00436fbeea 100644 --- a/plugins/PostProcessingPlugin/PostProcessingPlugin.py +++ b/plugins/PostProcessingPlugin/PostProcessingPlugin.py @@ -93,6 +93,11 @@ def execute(self, output_device) -> None: Logger.logException("e", "Exception in post-processing script.") if len(self._script_list): # Add comment to g-code if any changes were made. gcode_list[0] += ";POSTPROCESSED\n" + # Add all the active post processor names to data[0] + pp_name_list = Application.getInstance().getGlobalContainerStack().getMetaDataEntry("post_processing_scripts") + for pp_name in pp_name_list.split("\n"): + pp_name = pp_name.split("]") + gcode_list[0] += "; " + str(pp_name[0]) + "]\n" gcode_dict[active_build_plate_id] = gcode_list setattr(scene, "gcode_dict", gcode_dict) else: