Skip to content

Commit

Permalink
Update PurgeLinesAndUnload.py
Browse files Browse the repository at this point in the history
Change the comment line location from the end of data[1] to the first line of the "moves".
  • Loading branch information
GregValiant committed Jan 8, 2025
1 parent 477abe2 commit df2068a
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions plugins/PostProcessingPlugin/scripts/PurgeLinesAndUnload.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,6 @@ def execute(self, data):
else:
msg_text = "Open the Gcode file for preview in Cura. Make sure the 'Purge Lines' don't run underneath something else and are acceptable."
Message(title="[Purge Lines and Unload]", text=msg_text).show()
<<<<<<< Updated upstream
=======
data[1] += self.data_str
>>>>>>> Stashed changes
return data

def _get_real_start_point(self, first_section: str) -> tuple:
Expand Down Expand Up @@ -330,11 +326,7 @@ def _move_to_location(self, location_name: str, location: tuple) -> str:
# Extract components
start_side, start_depth = self.end_purge_location
target_side, target_depth = location
<<<<<<< Updated upstream
# Start of the moves and a comment to highlight the move
=======

>>>>>>> Stashed changes
moves = [f";MESH:NONMESH---------[Circle around to {location_name}] Start from: {str(start_side)} {str(start_depth)} Go to: {target_side} {target_depth}\nG0 F600 Z2 ; Move up\n"]

# Helper function to add G-code for moves
Expand All @@ -360,11 +352,6 @@ def add_move(axis: str, position: float) -> None:
add_move("X", self.machine_right)
else:
add_move("X", self.machine_left)
<<<<<<< Updated upstream
=======
# Add a comment to highlight the move
#moves[0] += f" Start from: {str(start_side)} {str(start_depth)} Go to: {target_side} {target_depth}\n"
>>>>>>> Stashed changes
# Compare positions
if start_depth != target_depth:
if target_depth == Location.REAR:
Expand Down

0 comments on commit df2068a

Please sign in to comment.