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 not a huge deal I have to press the button one
extra time
{REPLACE "; layer 3" ";move away and pause \nG1 Z10 F1800 \nG1 Y10 X10 F3000 \nM0 \nG92 E0 \nG1 E-1.7500 F900 \n; layer 3"}
this is what I put in the profile
here is the code i puts in the top section of the file where s3d stores all the parameters lines 150-166 of my gcode file
; postProcessing,{REPLACE ";move away and pause
G1 Z10 F1800
G1 Y10 X10 F3000
M0
G92 E0
G1 E-1.7500 F900
; layer 3" ";move away and pause \nG1 Z10 F1800 \nG1 Y10 X10 F3000 \nM0 \nG92 E0 \nG1 E-1.7500 F900 \n;move away and pause
G1 Z10 F1800
G1 Y10 X10 F3000
M0
G92 E0
G1 E-1.7500 F900
; layer 3"}
; defaultSpeed,6000
; outlineUnderspeed,0.65
; solidInfillUnderspeed,0.8
; supportUnderspeed,0.8