To lift the head to prevent the nozzle to tip over your print you could use an option called
Z hop in Cura. Just enter `hop' in the search box on the right side to make those options magically appear (in a recent version of Cura, e.g. version 3.x.x).
Z hop there is no default action, or series of commands, per layer to be specified before the start of the layer. There are 2 other ways to circumvent this:
- The first is saving you G-code to file and open the file in an advanced text editor (e.g. Notepad++). With a (recorded) macro you can find the words
;LAYER:, which are inserted by Cura before each layer starts, and insert a pre-copied list of commands that set the movement in relative mode, move Z up 2 mm, set into absolute mode again. When the next layer starts the extruder goes to the layer start from a 2 mm rise.
- Write a plugin for Cura to post-process (
C:\Program Files\Ultimaker Cura x.x\plugins\PostProcessingPlugin\scripts) the G-code file to inject the code to Z hop before the start of every layer, or a plugin that adds a new option and/or category to the slicer settings sidebar of the GUI.