Page 1 of 1

Add layer placeholders to G-Code layer change scripts

Posted: Sun May 29, 2016 1:28 pm
by WZ9V
Could you add two placeholders in the G-Code layer change scripts?

I'd like to see
[layer] - current layer number
[layers] - total number of layers

This would allow something like
M117 Printing layer [layer] of [Layers]

To display I for on the LCD or terminal without having to use a post processing script.

Re: Add layer placeholders to G-Code layer change scripts

Posted: Tue May 31, 2016 12:51 am
by Lagbert
+1 to WZ9V's idea

Additionally, adding the ability to control the frequency with which the layer change script is run would be helpful. For example, I want to run my hot end over a cleaning brush, but I don't want to do it every layer. Having the ability to tell simplify to only run the script every X layers begin with layer Y would be helpful.

Re: Add layer placeholders to G-Code layer change scripts

Posted: Sat Jan 06, 2018 11:04 pm
by aplocher
Did you guys ever figure this out? Take a look at Shaqfu's reply here: https://forum.simplify3d.com/viewtopic.php?f=8&t=1959 .

He got it to show the layer # (but not the total, which is what I'm looking for) with these commands added to the "Additional terminal commands for post processing" textbox. He has a pic and more details too, but no total still ... :

{REPLACE "; layer" "M117 Layer"}
{REPLACE " Z = " " Z="}