{REPLACE "; layer 3" ";move away and pause \nG1 Z10 F1800 \nG1 Y10 X10 F3000 \nM0 \nG28 X \nG92 E0 \nG1 E-1.7500 F900 \n; layer 3"} here is a little more complex post processing code for pausing this stops at layer 3 >>> {REPLACE "; layer 3" <<<< simply change the layer...
Thanks for your help guys I kind of agree with way the comments are handled It needs to not be machine readable I had gcode that was uncomented And had my machine attempt to do stuff That thankfully was no real harm but the potential Of having a machine move before it is homed Could cause a problem ...
I have noticed that when using the replace command to add multiple lines of gcode makes for issues with the commented section at the top of the file it tries to run the commands you add this is my script for changing color it works fine even though before my printer heats up it tries to run the code...