Cura/plugins/PostProcessingPlugin/scripts
Jelle Spijker d87c7a70cb
Switch return order for Repetier pauseAtHeight
While testing I noticed that the movement after the pause will
first move the head down and then move to the position before
the pause. This could result in noticeable artifacts or
accidentally push thin towers from the bed.) See the code below.

```gcode
;TYPE:CUSTOM
;added code by post processing
;script: PauseAtHeight.py
;current z: 5
;current height: 5.0
M83 ; switch to relative E values for any needed retraction
G1 F300 Z6 ; move up a millimeter to get out of the way
G1 F9000 X190 Y190
G1 F300 Z20.0
M84 E0
@pause now change filament and press ; Do the actual pause
G1 F300 Z5
G1 F9000 X30.759 Y30.759
G1 F1800 ; restore extrusion feedrate
```
I have switched the lines in the script such that it will first move to the correct X, Y and then move down
```python
prepend_gcode += self.putValue(G = 1, X = x, Y = y, F = 9000) + "\n"
prepend_gcode += self.putValue(G = 1, Z = current_z, F = 300) + "\n"
```
As shown in the code below
```gcode
;TYPE:CUSTOM
;added code by post processing
;script: PauseAtHeight.py
;current z: 5
;current height: 5.0
M83 ; switch to relative E values for any needed retraction
G1 F300 Z6 ; move up a millimeter to get out of the way
G1 F9000 X190 Y190
G1 F300 Z20.0
M84 E0
@pause now change filament and press ; Do the actual pause
G1 F9000 X30.759 Y30.759
G1 F300 Z5
G1 F1800 ; restore extrusion feedrate
```
2021-08-17 13:38:50 +02:00
..
ChangeAtZ.py Round temperatures when displaying them 2020-12-24 16:08:12 +01:00
ColorMix.py Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
CreateThumbnail.py Added break from loop 2020-12-06 14:08:46 -05:00
DisplayFilenameAndLayerOnLCD.py Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
DisplayProgressOnLCD.py Accept Griffin-style time estimation header 2021-03-31 15:08:33 +02:00
ExampleScript.md point people to a good example 2018-11-29 15:29:51 +01:00
FilamentChange.py Add Z Position parameter to FilamentChange (#9658) 2021-05-21 17:02:53 +02:00
InsertAtLayerChange.py Correct and consistent spelling of g-code 2020-07-20 13:36:49 +02:00
PauseAtHeight.py Switch return order for Repetier pauseAtHeight 2021-08-17 13:38:50 +02:00
RetractContinue.py Convert doxygen to rst for POS, MonitorStage, PostProcessing 2020-05-08 16:28:07 +02:00
SearchAndReplace.py Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
Stretch.py Fix extruder and feed rate after extruder-only moves in post stretch script (issue 7755) 2020-05-16 14:37:57 -07:00
TimeLapse.py Update plugins/PostProcessingPlugin/scripts/TimeLapse.py 2020-11-25 19:33:37 -03:00
UsePreviousProbeMeasurements.py Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00