Skip to content

Commit

Permalink
Update Search, Insert and TimeLapse
Browse files Browse the repository at this point in the history
Remove code that added the PP name to the gcode.
  • Loading branch information
GregValiant committed Jun 23, 2023
1 parent 44c6cf1 commit 0e8b20e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions plugins/PostProcessingPlugin/scripts/InsertAtLayerChange.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,6 @@ def execute(self, data):
if when_to_insert == "once_only":
the_search_layer = int(self.getSettingValueByKey("single_end_layer"))-1

#Add the post processor name to the gcode file
data[0] += "; Insert at Layer Change (Insert; " + str(mycode) + " Insert Frequency; " + when_to_insert + " layer)" + "\n"

#Single insertion
index = 0
if when_to_insert == "once_only":
Expand Down
4 changes: 0 additions & 4 deletions plugins/PostProcessingPlugin/scripts/SearchAndReplace.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ def execute(self, data):
replaceone = True
break
if replaceone: break
data[0] += "; Search and Replace (Search: " + str(self.getSettingValueByKey("search")) + " | Replace: " + str(self.getSettingValueByKey("replace")) + ")\n"
return data

#Do all the replacements---------------------------------------------------------------------------------------
Expand All @@ -186,8 +185,5 @@ def execute(self, data):
elif end_index == start_index:
layer = data[start_index]
data[start_index] = re.sub(search_regex, replace_string, layer)

#Add the post-processor name and settings to the gcode----------------------------------------------------
data[0] += "; Search and Replace (Search: " + str(self.getSettingValueByKey("search")) + " | Replace: " + str(self.getSettingValueByKey("replace")) + ")\n"
return data

2 changes: 0 additions & 2 deletions plugins/PostProcessingPlugin/scripts/TimeLapse.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,4 @@ def execute(self, data):
break
except:
all
# Add the post processor name to the gcode----------------------------------
data[0] += "; Time Lapse (" + when_to_insert + ")\n"
return data

0 comments on commit 0e8b20e

Please sign in to comment.