;AFTER LAYER CHANGE ;[layer_z] { if layer_num >= 1 } ; Retraction is not needed ;G1 E-2 F3600 ; retract G0 X0 Y170 F{travel_speed*60} ; get next to the switch M400 ;Wait for all moves to finish G0 X-1 F3000 ; press switch M400 ;Wait for all moves to finish G0 X1 F{travel_speed*60} ; Un-trigger, that's when the picture is actually taken M400 ;Wait for all moves to finish G4 P400;Wait for 400ms, to let the camera take the picture ; Retraction is not needed, so no priming either ;G1 E1.95 F3400 ; prime ;M400 ;Wait for all moves to finish {endif}