Filament Color Change with S3D .

Filament Color Change with S3D

.
So there really is a lack of proper info out there on how to do that, i have spent days weeding through garbage of post after post online. I have even asked help from Youtubers that are big in the 3D printing community and havent gotten any help. So after much research, i think i got it.

First Choose which option you are interested on.

Option A
You want to display your current layers on your LCD.
You want to pause print, move hot end out of the way, and change filament then resume.

Option B
You want to pause print, move hot end out of the way, and change filament then resume.

Here is the code.

Option A
Go to Process Settings
Go to Scripts Tab
On the bottom box (post processing) enter

{REPLACE “; layer” “M117 Layer”}
{REPLACE " Z = " " Z="}
{REPLACE “\nM117 Layer 4, Z=” “\nG1 X10 Y5\nM0\nM117 Layer 4, Z=”}

Please note you must change the layer’s number to the layer you want the color to change at!
You can repeat the third line as many times as needed, just update the layer number accordingly.
**Order of the above code matters. Enter it exactly. The third line assumes the previous two lines exist.

Option B
Go to Process Settings
Go to Scripts Tab
On the bottom box (post processing) enter

{REPLACE "; layer 4, Z = " "\nG1 X10 Y5\nM0\n; layer 4, Z = "}

Please note you must change the layer’s number to the layer you want the color to change at!
You can repeat the third line as many times as needed, just update the layer number accordingly.

In simple terms, this is what it accomplishes.
First line adds M117 (display on LCD) to the layers labelS3D has on the Gcode.
Second line eliminates some spaces so the whole data shows on a 20x4 display.
Third line is what looks for the M117 Layers label, enters a new line and inserts the coordinates to park, and pauses print.

People usually just call this “stop at z”.