<LAYER> token?

Post Reply
User avatar
orcinus
Posts: 15
Joined: 30 Dec 2014, 20:59
Location: Croatia

<LAYER> token?

Post by orcinus »

Is there a layer number token?
If not, could it be added?
brasshopper
Posts: 7
Joined: 11 Apr 2017, 21:10

Re: <LAYER> token?

Post 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.
Post Reply