Posts: 1
Joined: Tue Mar 12, 2019 8:40 pm

Layer Change Script every X Layer

Tue Mar 12, 2019 8:45 pm

Does anyone in the community have an idea of how to make a custom Layer Change Script that only runs on predetermined layers such as every 2nd or every 5th layer?

Posts: 139
Joined: Mon Mar 02, 2015 1:23 pm

Re: Layer Change Script every X Layer

Wed Mar 13, 2019 11:45 am

This link should get you started viewtopic.php?f=8&t=1959 - there's info on Layer changes...

[EDIT] Follow-up: I may as well add the lines I use to pause at specific layer (idea came from the link, above).

{REPLACE "; layer" "M117 Layer"}
{REPLACE " Z = " " Z="}
; leave above alone. set layer# in next line and un-comment it
;{REPLACE "\nM117 Layer 4, Z=" "\nG1 X0 Y35\nM0\nM117 Layer 4, Z="}

It's in my Scripts Post Process panel - the code panel is too small and clips the view but, add the four lines and change the last line as I indicate (used Layer number 4)
Screen Shot 2019-03-13 at 10.25.46 AM.png
3D Print Parts

Return to “General Discussion and Tips”