3dSynth

Docs / SynthBlocks

Open in the interactive docs reader

For Z

Iterates over a Z height range, executing nested blocks at each step. Exposes context variables that change with each iteration.

Block

Interactive preview is available in the interactive reader.

Parameters

Z start (mm)
Starting Z height.
Z end (mm)
Ending Z height.
step (mm)
Z increment per iteration. Typically matches your layer height.
body
Statement slot — operations executed at each Z step.

Context variables

Inside the body, these variables update automatically at each iteration:

VariableValue
zCurrent Z height in mm
normZ0 at Z start, 1 at Z end
layerIndex0, 1, 2, 3...

How it works

For Z is essential for layer-aware designs. Unlike Spiral Up (which lifts continuously), For Z gives you discrete steps — useful when you need to change parameters per layer, such as gradually adjusting radius, speed, or temperature with height.