Pathio Users

Should have a variable for inserting layer number into G Code

You have a lot of variables that can be inserted into G Code, but you do not have a simple sequential layer number - layer 1, layer 2, etc

This is useful with octoprint plugins to show layer number/total layers on the printer LCD display. Other slicers support this - at least slic3r and cura do


Hi @jbernardis
We totally agree. I’ve got this on my list of variables to add in when we do our next round of sprucing up the scripting engine. It should make it easier to make layer-specific GCode scripts, too!

1 Like

I second this ( maybe state/current_layer and state/next_layer ? ).