Repetier-Server @execute parameters
@execute takeSnapshot '[input_filename_base]-[filament_preset]-[print_preset]' '[layer_num]'
The slicer then substitutes these when generating g-code file.
If I have spaces in the first parameter my script gets more than 2 expected parameters.
Hope this all makes sense.
BTW what I also found is that when I put the above @execute snippet in the before layer change it messes up the number of layers calculation (I get ½ of the total layers when uploading to the RS.