Works like expected ! Thanks
Only a short addition: Because layer information starts at
;LAYER:0
we have to reduce "max_layer" by 1. So in the end for a file with ";LAYER_COUNT:83" first insertion is:
M118 P0 A1 action:notification Layer Left 0/82
;LAYER:0
and last insertion is:
M118 P0 A1 action:notification Layer Left 82/82
;LAYER:82
Here is my version:
InsertAtLayerChangeEnhancementForTotalLayer.zip (1.2 KB)