Page 1 of 1
<LAYER> token?
Posted: 05 Jun 2016, 20:15
by orcinus
Is there a layer number token?
If not, could it be added?
Re: <LAYER> token?
Posted: 13 Apr 2017, 02:12
by brasshopper
Since you really can't do that much math with the putative <LAYER> number, what could you do with it? I think that there is a good case to make most of the variables used by the slicer available - at least those that go into building a print - and even dynamically changable - some sort of escape into some language that can be used to calculate - and the results should be able to be put into the gcode generated from the exit or even to be stored into the slicer variable storage.
I have seen something that provided a gcode exit that read something like $(code) and the $() were the code delimiters. A $() on a line by itself would not generate gcode, maybe, while one with a prefix of G or M or T would result in generated gcode. Just a thought. I still like maybe lua or in Unix I have used perl's scheme for imbedding interpreter stuff with access to system variables.