Skip to content

Commit

Permalink
Merge pull request #15883 from GregValiant/PostProcPlugin
Browse files Browse the repository at this point in the history
Update PostProcessingPlugin.py
  • Loading branch information
rburema authored Oct 4, 2023
2 parents b286d89 + 3985567 commit cd73bef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/PostProcessingPlugin/PostProcessingPlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit cd73bef

Please sign in to comment.