Pathio Users

Documentation error and variable request


i noticed there is a mistake in the documentation.

In the scripting section the example is wrong:

{% if state/Z == 10 %}
M106 S0 ; Turn fan off at layer 10
{% endif %}

this doesn’t turn the fan off at layer 10. It turn it off at the Z-height of 10mm.

This leads to following question:
So could we have a variable that we can count the amount of layers?


Thanks for the catch, I’ll update the docs. Yes, we should be able to expose the count of the layer in the scripts, I’ll look into getting that in since it’ll take some of the work out of the scripting process!